From: Jesper Juhl Date: Tue, 31 Jul 2012 11:39:37 +0000 (+0000) Subject: bnx2x: fix mem leak when command is unknown X-Git-Tag: v3.6-rc2~24^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6d5c09bc0c49aea041486d77c2f67e98ae0bc3;p=pandora-kernel.git 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 Acked-by: Dmitry Kravkov Signed-off-by: David S. Miller --- Reading git-diff-tree failed