]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix access to uninitialized index
authorTariq Toukan <tariqt@mellanox.com>
Sun, 15 May 2016 07:21:26 +0000 (10:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:58:01 +0000 (13:58 -0400)
commit5c3500e1fd3b00ec35335e975c64208a17946fd0
tree0145447ab44391daeca1d5286499e7e6638c931f
parent839ed7c5b95b14ac66ade6513fd5b55bd967d29f
net/mlx4_core: Fix access to uninitialized index

Prevent using uninitialized or negative index when handling
steering entries.

Fixes: 2028a43671e2 ('mlx4: Add support for promiscuous mode in the new steering model.')
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c