linux/drivers/staging/vt6656
Jesper Juhl e3b09e4bf6 staging, vt6656/wpactl.c: Fix mem leak in wpa_ioctl()
If we hit the default case in the switch statement in wpa_ioctl()
we'll leak the memory allocated to 'param' when the variable goes out
of scope without having been assigned to anything.

This patch fixes the leak by kfree()'ing the memory before we return
from the function.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-09 09:20:06 -08:00
..
80211hdr.h
80211mgr.c staging: vt6656: 80211mgr.c: Code cleanup, removed return of void funcs. 2011-11-30 19:28:18 +09:00
80211mgr.h
aes_ccmp.c
aes_ccmp.h
baseband.c staging: vt6656: baseband.c: Remove commented code 2011-11-30 19:28:18 +09:00
baseband.h
bssdb.c staging: vt6656: baseband.c: Remove commented code 2011-11-30 19:28:18 +09:00
bssdb.h
card.c drivers: staging: vt6656: card.c: Remove useless return statement 2011-12-22 13:36:25 -08:00
card.h drivers: staging: vt6656: card.c: Remove useless return statement 2011-12-22 13:36:25 -08:00
channel.c
channel.h
control.c
control.h
country.h
datarate.c
datarate.h
desc.h
device.h
device_cfg.h
dpc.c staging: vt6656: use %pM for printing MACs 2011-08-23 14:36:18 -07:00
dpc.h
firmware.c staging: vt6656: Remove NULL check before kfree 2011-03-14 11:57:37 -07:00
firmware.h
hostap.c staging: vt6656: Remove NULL check before kfree 2011-03-14 11:57:37 -07:00
hostap.h
int.c staging: vt6656: int.c, int.h: Change return of function to void 2011-12-22 13:45:19 -08:00
int.h staging: vt6656: int.c, int.h: Change return of function to void 2011-12-22 13:45:19 -08:00
iocmd.h
ioctl.c staging: vt6656: integer overflows in private_ioctl() 2011-11-30 19:29:40 +09:00
ioctl.h
iowpa.h
iwctl.c staging: vt6656: iwctl.c: Rewrite siwrts funciton 2012-02-09 09:18:27 -08:00
iwctl.h staging: vt6656: iwctl.c: Rewrite siwrts funciton 2012-02-09 09:18:27 -08:00
Kconfig Staging: vt665?: prevent modules from being built into the kernel. 2011-04-04 21:33:26 -07:00
key.c
key.h
mac.c drivers: staging: vt6656: Remove not used returned data of function 2011-12-22 13:36:25 -08:00
mac.h drivers: staging: vt6656: Remove not used returned data of function 2011-12-22 13:36:25 -08:00
main_usb.c staging: vt6656: iwctl.c: Rewrite siwrts funciton 2012-02-09 09:18:27 -08:00
Makefile
mib.c
mib.h
michael.c
michael.h
power.c
power.h
rc4.c
rc4.h
rf.c
rf.h
rndis.h
rxtx.c staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
rxtx.h
srom.h
tcrc.c
tcrc.h
tether.c
tether.h
tkip.c
tkip.h
tmacro.h
TODO
ttype.h
upc.h
usbpipe.c
usbpipe.h
vntconfiguration.dat
wcmd.c staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
wcmd.h
wctl.c
wctl.h
wmgr.c staging: vt6656: use %pM for printing MACs 2011-08-23 14:36:18 -07:00
wmgr.h Fix common misspellings 2011-03-31 11:26:23 -03:00
wpa.c
wpa.h
wpa2.c
wpa2.h
wpactl.c staging, vt6656/wpactl.c: Fix mem leak in wpa_ioctl() 2012-02-09 09:20:06 -08:00
wpactl.h