From: Vaios Papadimitriou Date: Tue, 8 May 2012 22:01:24 +0000 (-0500) Subject: Fix driver not returning when bad ndlp found in abts error event handling (CR 126209) X-Git-Tag: v2.6.39-400.9.0~423^2~123^2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2cdf6bc52c46534d94c3653fda8a300e1b8fc09e;p=users%2Fjedix%2Flinux-maple.git Fix driver not returning when bad ndlp found in abts error event handling (CR 126209) 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 --- diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 4e6ebb2adf89..979979b49699 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -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 "