dm bufio: fix missed destroy of mutex c->lock
PATCH 1/1 dm bufio: fix missed destroy of mutex c->lock
The mutex c->lock is initialized in dm_bufio_client_create, however, it is not destroyed before free the structure of dm_bufio_client in dm_bufio_client_destroy.
Signed-off-by Xiongwei Song <[email protected]>
--- drivers/md/dm-bufio.c | 1 + 1 file changed, 1 insertion(+)
drivers/md/dm-bufio.c +1 -0
@@ -1811,6 +1811,7 @@ void dm_bufio_client_destroy(struct dm_bufio_client *c)BUG_ON (c->n_buffers[i]);dm_io_client_destroy (c->dm_io); +mutex_destroy (&c->lock);kfree (c); }EXPORT_SYMBOL_GPL (dm_bufio_client_destroy);
Signature · 1 line
2.15.1