Thread (3 messages) flat view 3 messages, 3 authors, 2012-08-02

Re: [PATCH] bnx2x: fix mem leak when command is unknown

From: David Miller <davem@davemloft.net>
Date: 2012-08-02 07:21:09
Also in: lkml

From: Jesper Juhl <redacted>
Date: Tue, 31 Jul 2012 23:39:37 +0200 (CEST)
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 <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help