Fix zvol_init error handling

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@prophetstor.com>
This commit is contained in:
Richard Yao 2017-05-20 14:01:55 -04:00 committed by Brian Behlendorf
parent 5228cf0116
commit 8f7933fec9

View File

@ -2367,6 +2367,7 @@ out_free:
out_taskq: out_taskq:
taskq_destroy(zvol_taskq); taskq_destroy(zvol_taskq);
out: out:
ida_destroy(&zvol_ida);
mutex_destroy(&zvol_state_lock); mutex_destroy(&zvol_state_lock);
list_destroy(&zvol_state_list); list_destroy(&zvol_state_list);