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
80211mgr.h
aes_ccmp.c
aes_ccmp.h
baseband.c
baseband.h
bssdb.c
bssdb.h
card.c
card.h
channel.c
channel.h
control.c
control.h
country.h
datarate.c
datarate.h
desc.h
device_cfg.h
device.h
dpc.c
dpc.h
firmware.c
firmware.h
hostap.c
hostap.h
int.c
int.h
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
iwctl.h
Kconfig
key.c Staging: vt6655-6: check keysize before memcpy() 2012-04-10 09:17:34 -07:00
key.h
mac.c
mac.h
main_usb.c
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
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
wcmd.h
wctl.c
wctl.h
wmgr.c
wmgr.h
wpa2.c
wpa2.h
wpa.c
wpa.h
wpactl.c
wpactl.h