]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix driver not returning when bad ndlp found in abts error event handling (CR 126209)
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 8 May 2012 22:01:24 +0000 (17:01 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:01:24 +0000 (17:01 -0700)
The abts should not be processed when whne a bad ndlp is found. The function
now returns properly rather then continuing.

commit id: 6b5151fd7baec6812fece993ddd7a2cf9fd0125f

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c

index 4e6ebb2adf895e49a18c2a7b90c59a0155a97397..979979b49699abec6fc5adca86fb63d6dff3d5f0 100644 (file)
@@ -8385,10 +8385,13 @@ lpfc_sli4_abts_err_handler(struct lpfc_hba *phba,
 {
        struct lpfc_vport *vport;
 
-       if (!ndlp || !NLP_CHK_NODE_ACT(ndlp))
+       if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) {
                lpfc_printf_log(phba, KERN_INFO, LOG_SLI,
                                "3115 Node Context not found, driver "
                                "ignoring abts err event\n");
+               return;
+       }
+
        vport = ndlp->vport;
        lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
                        "3116 Port generated FCP XRI ABORT event on "