diff options
Diffstat (limited to 'drivers/target/loopback/tcm_loop.c')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 150bdb426fc4..21b49f351723 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -932,7 +932,10 @@ static int tcm_loop_drop_nexus( | |||
932 | struct tcm_loop_nexus *tl_nexus; | 932 | struct tcm_loop_nexus *tl_nexus; |
933 | struct tcm_loop_hba *tl_hba = tpg->tl_hba; | 933 | struct tcm_loop_hba *tl_hba = tpg->tl_hba; |
934 | 934 | ||
935 | tl_nexus = tpg->tl_hba->tl_nexus; | 935 | if (!tl_hba) |
936 | return -ENODEV; | ||
937 | |||
938 | tl_nexus = tl_hba->tl_nexus; | ||
936 | if (!tl_nexus) | 939 | if (!tl_nexus) |
937 | return -ENODEV; | 940 | return -ENODEV; |
938 | 941 | ||