]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/mlx4: Check port_num before using it in mlx4_ib_port_link_layer
authorMoshe Lazer <moshel@mellanox.com>
Tue, 25 Mar 2014 08:54:15 +0000 (10:54 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:19 +0000 (14:45 -0700)
commit78f676f4c9fc7e850376bb8a820f1cbfa99242d3
treef07ae1310bab71802aefe96864743cfe40f59431
parent8b5f90d6a02c544ea9e9447190f6bb00968df3b5
IB/mlx4: Check port_num before using it in mlx4_ib_port_link_layer

In mlx4_ib_port_link_layer func port_num is used as table
index without checking its validity.

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
(Ported from OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/main.c