Skip to content

Commit

Permalink
tcm_loop: Check for valid hba in tcm_loop_drop_nexus()
Browse files Browse the repository at this point in the history
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Hannes Reinecke authored and Nicholas Bellinger committed Oct 16, 2013
1 parent a309f48 commit 1ec59fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/target/loopback/tcm_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,10 @@ static int tcm_loop_drop_nexus(
struct tcm_loop_nexus *tl_nexus;
struct tcm_loop_hba *tl_hba = tpg->tl_hba;

tl_nexus = tpg->tl_hba->tl_nexus;
if (!tl_hba)
return -ENODEV;

tl_nexus = tl_hba->tl_nexus;
if (!tl_nexus)
return -ENODEV;

Expand Down

0 comments on commit 1ec59fe

Please sign in to comment.