]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75ca66f21f6cd9aea7db3f2dceec2db7c0e83e3f
tree72094253b9b3acb944d809e19a3974b9fe52b58f
parentde2cc7511ed09147fa442b2798d44b028e5fe898
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