Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ec59fee authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Nicholas Bellinger
Browse files

tcm_loop: Check for valid hba in tcm_loop_drop_nexus()

parent a309f489
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;