[bug report] scsi: lpfc: NVME Target: Base modifications

[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 f358dd0ca26c: "scsi: lpfc: NVME Target: Base modifications" 
from Feb 12, 2017, leads to the following Smatch complaint:

drivers/scsi/lpfc/lpfc_mem.c:650 lpfc_sli4_nvmet_alloc()
	 warn: variable dereferenced before check 'dma_buf->iocbq' (see line 649)

drivers/scsi/lpfc/lpfc_mem.c
   648		dma_buf->iocbq = lpfc_sli_get_iocbq(phba);
   649		dma_buf->iocbq->iocb_flag = LPFC_IO_NVMET;
                ^^^^^^^^^^^^^^^^^^^^^^^^^
Dereference.

   650		if (!dma_buf->iocbq) {
                     ^^^^^^^^^^^^^^
Check.

   651			kfree(dma_buf->context);
   652			pci_pool_free(phba->lpfc_drb_pool, dma_buf->dbuf.virt,

regards,
dan carpenter



[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