]> git.baikalelectronics.ru Git - kernel.git/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)
commit5fc6628d01c15600e4b6daf997e3de8f48bf43f2
tree3c9eb482826b1d3c40a428f4911bdd0202ac786d
parent072f2a1303a01ecaa62934124ffa2ffa878e22ab
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