Commit 41319e4f authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen
Browse files

scsi: lpfc: Fix a precedence bug in lpfc_nvme_io_cmd_wqe_cmpl()



The ! has higher precedence than the & operation.  I've added
parenthesis so this works as intended.

Fixes: 952c303b ("scsi: lpfc: Ensure io aborts interlocked with the target.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4efea4f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -948,7 +948,7 @@ out_err:
	/* NVME targets need completion held off until the abort exchange
	 * completes.
	 */
	if (!lpfc_ncmd->flags & LPFC_SBUF_XBUSY)
	if (!(lpfc_ncmd->flags & LPFC_SBUF_XBUSY))
		nCmd->done(nCmd);

	spin_lock_irqsave(&phba->hbalock, flags);