]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Check before cleaning counters bitmap
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 15 Jun 2015 14:58:56 +0000 (17:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 00:23:01 +0000 (17:23 -0700)
commit1a1c5f21f2cabd75a0bfe43b83921660deebb007
tree0746338815d04ade2ce32327984821e6b2dd55fe
parent5d7d467eae131e67b791e468b280dfbc9bc45d54
net/mlx4_core: Check before cleaning counters bitmap

If counters are not supported by the device. The indices bitmap table is not
allocated during initialization. Add the symmetrical check before cleaning
the counters bitmap table or freeing a counter.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c