]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit1b497e6493c49bbb55c89f53562f7f853495e90d
tree8f03770651df8363684a4ce8927685f6e4af8b07
parentdbe4a09e8bbcf88809a8394d6a359d8cebd22a86
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: f342d940ee0e ("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