Jesper Juhl 8b6d5c09bc bnx2x: fix mem leak when command is unknown
In bnx2x_mcast_enqueue_cmd() we'll leak the memory allocated to
'new_cmd' if we hit the deafault case of the 'switch (cmd)'.
Add a 'kfree(new_cmd)' to that case to avoid the leak.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-02 00:19:17 -07:00
..
2012-07-16 22:38:27 -07:00
2012-07-16 22:16:40 -07:00
2012-07-26 14:30:23 -07:00
2012-07-09 14:42:30 -07:00
2012-07-16 22:38:27 -07:00
2012-07-16 22:38:27 -07:00
2012-07-16 22:38:27 -07:00
2012-07-18 09:40:54 -07:00
2012-07-16 22:38:27 -07:00