summaryrefslogtreecommitdiff
path: root/firmware/matrox
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2014-08-21 15:28:37 +0400
committerRoland Dreier <roland@purestorage.com>2014-09-22 20:46:52 +0400
commite381835cf1b8e3b2857277dbc3b77d8c5350f70a (patch)
tree5fdd73c629fe7753fbd4c5b29317df7b96ee9e20 /firmware/matrox
parent4ff0acca7344c93fd9ed778b4c3ce16d95c594e4 (diff)
downloadlinux-e381835cf1b8e3b2857277dbc3b77d8c5350f70a.tar.xz
IB/mlx4: Avoid null pointer dereference in mlx4_ib_scan_netdevs()
When Ethernet netdev is not present for a port (e.g. when the link layer type of the port is InfiniBand) it's possible to dereference a null pointer when we do netdevice scanning. To fix that, we move a section of code that needs to run only when netdev is present to a proper if () statement. Fixes: ad4885d279b6 ("IB/mlx4: Build the port IBoE GID table properly under bonding") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'firmware/matrox')
0 files changed, 0 insertions, 0 deletions