]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Fix uninitialized variable in dw_handle_msi_irq()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 16 Mar 2017 19:34:51 +0000 (14:34 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2017 13:29:56 +0000 (08:29 -0500)
commit4368d20ceb2d823214a2b9c2a0f9e6951b914840
tree8f03770651df8363684a4ce8927685f6e4af8b07
parent1147874c28e7fe0c8d9e900f0ca8095898b41b31
PCI: dwc: Fix uninitialized variable in dw_handle_msi_irq()

The bug is that "val" is unsigned long but we only initialize 32 bits of
it.  Then we test "if (val)" and that might be true not because we set the
bits but because some were never initialized.

Fixes: b90f9f428bc4 ("PCI: exynos: Add support for MSI")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pcie-designware-host.c