diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-11-13 22:14:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-26 09:08:34 -0800 |
commit | b426a8365ad707b0f700923a5c464c3b7fed234a (patch) | |
tree | 57e7a058bfade21757d536cc9a54ad1a94b5e986 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | 92fd7a89888fc223337fe5fd5dc83b79e1174340 (diff) | |
download | lwn-b426a8365ad707b0f700923a5c464c3b7fed234a.tar.gz lwn-b426a8365ad707b0f700923a5c464c3b7fed234a.zip |
Net, libertas: Resolve memory leak in if_spi_host_to_card()
commit fe09b32a4361bea44169b2063e8c867cabb6a8ba upstream.
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
0 files changed, 0 insertions, 0 deletions