|
@@ -932,7 +932,10 @@ static int tcm_loop_drop_nexus(
|
|
struct tcm_loop_nexus *tl_nexus;
|
|
struct tcm_loop_nexus *tl_nexus;
|
|
struct tcm_loop_hba *tl_hba = tpg->tl_hba;
|
|
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)
|
|
if (!tl_nexus)
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|