]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/lpfc/lpfc_sli.c
[SCSI] lpfc 8.1.2: Fixed a double insertion of mail box object to the SLI mailbox...
[linux-2.6-omap-h63xx.git] / drivers / scsi / lpfc / lpfc_sli.c
index cb4ccbba0652ab3e0f96e10ae0904523830d0d97..1f876328b44b5de7cb17fce78819c9c2b484207f 100644 (file)
@@ -2867,11 +2867,10 @@ lpfc_sli_issue_mbox_wait(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq,
                pmboxq->context1 = NULL;
                /* if schedule_timeout returns 0, we timed out and were not
                   woken up */
-               if (timeleft == 0) {
+               if ((timeleft == 0) || signal_pending(current))
                        retval = MBX_TIMEOUT;
-               } else {
+               else
                        retval = MBX_SUCCESS;
-               }
        }