]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: fix kfree on error path in new_steering_entry()
authorMariusz Kozlowski <mk@lab.zgora.pl>
Mon, 4 Apr 2011 05:04:01 +0000 (22:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Apr 2011 05:04:01 +0000 (22:04 -0700)
commit6a0fce177b1aebf66e4597a43697cacc039f32a3
treee7feb055039bf9040dff0fd662e4685d8a302def
parent873c1fd8e4e82551448a068f588a9eacdb8cbd32
mlx4: fix kfree on error path in new_steering_entry()

On error path kfree() should get pointer to memory allocated by
kmalloc() not the address of variable holding it (which is on stack).

Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/mcg.c