commit | fe09b32a4361bea44169b2063e8c867cabb6a8ba | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Sun Nov 13 22:14:32 2011 +0100 |
committer | John W. Linville <linville@tuxdriver.com> | Tue Nov 15 10:02:57 2011 -0500 |
tree | 6669196f194348c76ca7fe0f2828555957476449 | |
parent | ed66ba472a742cd8df37d7072804b2111cdb1014 [diff] |
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 <jj@chaosbits.net> Acked-by: Dan Williams <dcbw@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>