net, wireless, mwifiex: Fix mem leak in mwifiex_update_curr_bss_params()
authorJesper Juhl <jj@chaosbits.net>
Sun, 6 Nov 2011 21:58:31 +0000 (22:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Nov 2011 18:19:15 +0000 (13:19 -0500)
If kmemdup() fails we leak the memory allocated to bss_desc.
This patch fixes the leak.
I also removed the pointless default assignment of 'NULL' to 'bss_desc'
while I was there anyway.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found