diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c index 87791265e09b..1fe5d33a5798 100644 --- a/drivers/block/null_blk/main.c +++ b/drivers/block/null_blk/main.c @@ -2045,6 +2045,8 @@ static void __exit null_exit(void) if (g_queue_mode == NULL_Q_MQ && shared_tags) blk_mq_free_tag_set(&tag_set); + + mutex_destroy(&lock); } module_init(null_init);