forked from Minki/linux
iscsi-target: fix error path in iscsi_target_init_module()
In iscsi_target_init_module() unwind transport protocol registration in case that iscsit_load_discovery_tpg() failed. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
506787a2c7
commit
7f2c53bb95
@ -609,6 +609,7 @@ static int __init iscsi_target_init_module(void)
|
||||
|
||||
return ret;
|
||||
r2t_out:
|
||||
iscsit_unregister_transport(&iscsi_target_transport);
|
||||
kmem_cache_destroy(lio_r2t_cache);
|
||||
ooo_out:
|
||||
kmem_cache_destroy(lio_ooo_cache);
|
||||
|
Loading…
Reference in New Issue
Block a user