aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBjorn Helgaas <[email protected]>2014-04-29 18:51:55 +0000
committerBjorn Helgaas <[email protected]>2014-04-29 23:36:44 +0000
commit1e358f94c00570f88a590cabe718daf835440cc9 (patch)
tree3ac5fcf7100d63dc4aad0e8ba6392353f56c5458 /net/unix/af_unix.c
parentPCI: Remove dead code (diff)
downloadkernel-1e358f94c00570f88a590cabe718daf835440cc9.tar.gz
kernel-1e358f94c00570f88a590cabe718daf835440cc9.zip
PCI: Fix use of uninitialized MPS value
If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss", so we pass a pointer to garbage into pcie_bus_configure_set(), where we compute "mps" based on the garbage. We then pass the garbage "mps" to pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case. Coverity isn't smart enough to deduce that we ignore the garbage (it's a lot to expect from a human, too), so initialize "smpss" to a safe value in all cases. Found by Coverity (CID 146454). Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions