net/mlx4: Verify port number in __mlx4_unregister_mac
authorEugenia Emantayev <eugenia@mellanox.com>
Tue, 8 Jul 2014 08:25:21 +0000 (11:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 02:58:44 +0000 (19:58 -0700)
commit143b3efb402d11f64639d5729634825c3934fc4c
tree7ced33d243b4a58dc9e47a6954d83ca703064b7d
parent4359db1e0d9f763dfcffbf23fb4a19341aad9b6b
net/mlx4: Verify port number in __mlx4_unregister_mac

Verify port number to avoid crashes if port number is outside the range.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c