diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2014-11-30 12:00:11 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-12-02 06:36:22 +0100 |
commit | 7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2 (patch) | |
tree | ed56e9f81fc7586b20636c502eca7c13989d03de /drivers | |
parent | tcm_loop: Fix wrong I_T nexus association (diff) | |
download | linux-7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2.tar.xz linux-7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 73e58d22e325..f8ec32298906 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -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); |