net/mlx4_core: Fix resource tracker error flow in add_res_range
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Oct 2015 14:14:03 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:27:52 +0000 (07:27 -0700)
commit95e196337a3bd1a1678e794064d8097600c277de
treec5cdbd0c33e01fbc9aa33c5c228466230da2705d
parenta5b3c56ef792009f6aff54ba93bd86ceca3e5bfc
net/mlx4_core: Fix resource tracker error flow in add_res_range

The 'for' loop when undoing rb-tree insertions and list-adds in the
error flow in add_res_range had errors, fix them.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c