re: [SCSI] lpfc 8.3.28: Add support for ABTS failure handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux