Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

nvmet: free workqueue object if module init fails

parent afd299ca
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1210,7 +1210,7 @@ static int __init nvmet_init(void)

	error = nvmet_init_discovery();
	if (error)
		goto out;
		goto out_free_work_queue;

	error = nvmet_init_configfs();
	if (error)
@@ -1219,6 +1219,8 @@ static int __init nvmet_init(void)

out_exit_discovery:
	nvmet_exit_discovery();
out_free_work_queue:
	destroy_workqueue(buffered_io_wq);
out:
	return error;
}