]> err.no Git - linux-2.6/commit
mlx4_core: Remove kfree() in mlx4_mr_alloc() error flow
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 26 Jul 2007 08:16:58 +0000 (11:16 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sat, 28 Jul 2007 15:30:45 +0000 (08:30 -0700)
commit0172e2e14c3c1df10ec0fa31d9f41c1bc3a472f3
tree3c9eb482826b1d3c40a428f4911bdd0202ac786d
parent4e8e6ee380c3858151165d7455b4954782f145a0
mlx4_core: Remove kfree() in mlx4_mr_alloc() error flow

mlx4_mr_alloc() doesn't actually allocate mr (it just initializes the
pointer that the caller passes in), so it shouldn't free it if an
error occurs.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/mr.c