Commit 04db0e5e authored by Chaitanya Kulkarni's avatar Chaitanya Kulkarni Committed by Christoph Hellwig

nvmet: free workqueue object if module init fails

Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent afd299ca
...@@ -1210,7 +1210,7 @@ static int __init nvmet_init(void) ...@@ -1210,7 +1210,7 @@ static int __init nvmet_init(void)
error = nvmet_init_discovery(); error = nvmet_init_discovery();
if (error) if (error)
goto out; goto out_free_work_queue;
error = nvmet_init_configfs(); error = nvmet_init_configfs();
if (error) if (error)
...@@ -1219,6 +1219,8 @@ static int __init nvmet_init(void) ...@@ -1219,6 +1219,8 @@ static int __init nvmet_init(void)
out_exit_discovery: out_exit_discovery:
nvmet_exit_discovery(); nvmet_exit_discovery();
out_free_work_queue:
destroy_workqueue(buffered_io_wq);
out: out:
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment