re: [SCSI] lpfc 8.3.19: Added support for ELS RRQ command

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

 



[ Hi, I've made some changes to Smatch so I'm sending bug reports for
  some old bugs.  Hope nobody minds and all. ]

Hello James Smart,

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

The patch 19ca760979e4: "[SCSI] lpfc 8.3.19: Added support for ELS 
RRQ command" from Nov 20, 2010, leads to the following Smatch 
complaint:

drivers/scsi/lpfc/lpfc_sli.c:15999 lpfc_drain_txq()
	 warn: variable dereferenced before check 'piocbq' (see line 15993)

drivers/scsi/lpfc/lpfc_sli.c
 15992			piocbq = lpfc_sli_ringtx_get(phba, pring);
 15993			sglq = __lpfc_sli_get_sglq(phba, piocbq);
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
New call to __lpfc_sli_get_sglq() dereferences "piocbq".

 15994			if (!sglq) {
 15995				__lpfc_sli_ringtx_put(phba, pring, piocbq);
 15996				spin_unlock_irqrestore(&phba->hbalock, iflags);
 15997				break;
 15998			} else {
 15999				if (!piocbq) {
                                    ^^^^^^^
Old check.

 16000					/* The txq_cnt out of sync. This should
 16001					 * never happen

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