Skip to contentSkip to conversation

lpfc 8.3.28: Add support for ABTS failure handling

SCSI Dan Carpenter 2 participants 2 messages Dec 16, 2011 – Dec 21, 2011 SCSI

lore
Share & tools
lore
#0 lore raw

Hello James Smart,

This is a semi-automatic email about new static checker warnings.

The patch cb69f7decc37: "[SCSI] lpfc 8.3.28: Add support for ABTS failure handling" from Dec 13, 2011, leads to the following Smatch complaint:

drivers/scsi/lpfc/lpfc_sli.c +8391 lpfc_sli4_abts_err_handler()
error: we previously assumed 'ndlp' could be null (see line 8387)

drivers/scsi/lpfc/lpfc_sli.c
8386
8387 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp))

                    ^^^^^

New check.

8388 lpfc_printf_log(phba, KERN_INFO, LOG_SLI,
8389 "3115 Node Context not found, driver "
8390 "ignoring abts err event\n");

  8391		vport = ndlp->vport;
                        ^^^^^^^^^^^

New dereference. Maybe the intent was to return after the print statement?

8392 lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
8393 "3116 Port generated FCP XRI ABORT event on "

regards,
dan carpenter

#1 lore raw

Dan,

We should have another patch set coming shortly - will address it in that patch.

-- james s

Quoted 32 lines · Dan Carpenter

Hello James Smart,

This is a semi-automatic email about new static checker warnings.

The patch cb69f7decc37: "[SCSI] lpfc 8.3.28: Add support for ABTS failure handling" from Dec 13, 2011, leads to the following Smatch complaint:

drivers/scsi/lpfc/lpfc_sli.c +8391 lpfc_sli4_abts_err_handler()
error: we previously assumed 'ndlp' could be null (see line 8387)

drivers/scsi/lpfc/lpfc_sli.c
8386
8387 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp))

                     ^^^^^

New check.

   8388			lpfc_printf_log(phba, KERN_INFO, LOG_SLI,
   8389					"3115 Node Context not found, driver "
   8390					"ignoring abts err event\n");
   8391		vport = ndlp->vport;
                         ^^^^^^^^^^^

New dereference. Maybe the intent was to return after the print statement?

8392 lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
8393 "3116 Port generated FCP XRI ABORT event on "

regards,
dan carpenter