[SCSI] lpfc 8.3.40: Fixed system panic during handling unsolicited receive buffer...
authorJames Smart <james.smart@emulex.com>
Fri, 31 May 2013 21:03:48 +0000 (17:03 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 26 Jun 2013 17:48:42 +0000 (10:48 -0700)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_sli.c

index 572579f..bd185e1 100644 (file)
@@ -3279,7 +3279,7 @@ lpfc_sli_sp_handle_rspiocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
                if (free_saveq) {
                        list_for_each_entry_safe(rspiocbp, next_iocb,
                                                 &saveq->list, list) {
-                               list_del(&rspiocbp->list);
+                               list_del_init(&rspiocbp->list);
                                __lpfc_sli_release_iocbq(phba, rspiocbp);
                        }
                        __lpfc_sli_release_iocbq(phba, saveq);