mlx4_core: fix mtt range deallocation
authorMarcel Apfelbaum <marcela@mellanox.co.il>
Mon, 2 Jan 2012 04:07:39 +0000 (04:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2012 17:49:16 +0000 (12:49 -0500)
commit1e27ca69446e98b666b215b8ba71bf29281ce674
tree72094253b9b3acb944d809e19a3974b9fe52b58f
parentf7d9821a6a9c83450ac35e76d3709e32fd38b76f
mlx4_core: fix mtt range deallocation

The mtt range was allocated in mtt units but deallocated
in segments. Among the rest, this caused crash during hotplug removal

Reported-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Marcel Apfelbaum <marcela@mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Tested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mr.c