aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2017-04-23 20:04:04 +0800
committerDavid S. Miller <[email protected]>2017-04-24 16:10:53 -0400
commit91ec701a553cb3de470fd471c6fefe3ad1125455 (patch)
tree542d0fcd16478312c482e5a629fdf0210d44077d /lib/mpi/mpi-inline.h
parent2a39e7aa8a98f777f0732ca7125b6c9668791760 (diff)
qlcnic: fix unchecked return value
Function pci_find_ext_capability() may return 0, which is an invalid address. In function qlcnic_sriov_virtid_fn(), its return value is used without validation. This may result in invalid memory access bugs. This patch fixes the bug. Signed-off-by: Pan Bian <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions