Unverified Commit b5eba3a5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15275 scsi: libfc: Fix use after free in fc_exch_abts_resp()

parents 72d43b22 1897a9e8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1703,6 +1703,7 @@ static void fc_exch_abts_resp(struct fc_exch *ep, struct fc_frame *fp)
	if (cancel_delayed_work_sync(&ep->timeout_work)) {
	if (cancel_delayed_work_sync(&ep->timeout_work)) {
		FC_EXCH_DBG(ep, "Exchange timer canceled due to ABTS response\n");
		FC_EXCH_DBG(ep, "Exchange timer canceled due to ABTS response\n");
		fc_exch_release(ep);	/* release from pending timer hold */
		fc_exch_release(ep);	/* release from pending timer hold */
		return;
	}
	}


	spin_lock_bh(&ep->ex_lock);
	spin_lock_bh(&ep->ex_lock);