linux/drivers/staging/vt6656
Jesper Juhl 17b7e1ba1e staging: vt6656: Don't leak memory in drivers/staging/vt6656/ioctl.c::private_ioctl()
If copy_to_user() fails in the WLAN_CMD_GET_NODE_LIST case of the
switch in drivers/staging/vt6656/ioctl.c::private_ioctl() we'll leak
the memory allocated to 'pNodeList'. Fix that by kfree'ing the memory
in the failure case.
Also remove a pointless cast (to type 'PSNodeList') of a kmalloc()
return value - kmalloc() returns a void pointer that is implicitly
converted, so there is no need for an explicit cast.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-12 14:34:31 -07: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: Fix typo in bssdb.c 2012-02-24 12:05:37 -08: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: Don't leak memory in drivers/staging/vt6656/ioctl.c::private_ioctl() 2012-04-12 14:34:31 -07: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 Staging: vt6655-6: check keysize before memcpy() 2012-04-10 09:17:34 -07:00
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 Staging: vt6656: Clean up switching to power saving mode. 2011-03-02 15:52:30 -05:00
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