diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2014-11-30 12:00:11 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-12-01 21:36:22 -0800 |
commit | 7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2 (patch) | |
tree | ed56e9f81fc7586b20636c502eca7c13989d03de /drivers/target | |
parent | 506787a2c7daed45f0a213674ca706cbc83a9089 (diff) | |
download | linux-7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2.tar.bz2 |
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/target')
-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); |