Coverity CIDs 1195199, 1195200: mei/pci-txe.c doesn't check pci_enable_msi() return value

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

 



Coverity complains that mei_txe_probe() and mei_txe_pci_resume() call
pci_enable_msi() without checking the result.  They do check
indirectly, by testing pci_dev_msi_enabled(), but it would be nicer to
check the pci_enable_msi() result directly:

112        pci_enable_msi(pdev);
113
114        /* clear spurious interrupts */
115        mei_clear_interrupts(dev);
116
117        /* request and enable interrupt  */
118        if (pci_dev_msi_enabled(pdev))

These are CIDs 1195199 and 1195200.

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




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux