From: Jesper Juhl Date: Sun, 13 Nov 2011 21:14:32 +0000 (+0100) Subject: Net, libertas: Resolve memory leak in if_spi_host_to_card() X-Git-Tag: v3.2-rc3~25^2~5^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe09b32a4361bea44169b2063e8c867cabb6a8ba;p=pandora-kernel.git Net, libertas: Resolve memory leak in if_spi_host_to_card() If we hit the default case in the switch in if_spi_host_to_card() we'll leak the memory we allocated for 'packet'. This patch resolves the leak by freeing the allocated memory in that case. Signed-off-by: Jesper Juhl Acked-by: Dan Williams Cc: stable@vger.kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed