17b7e1ba1e
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> |
||
---|---|---|
.. | ||
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.h | ||
device_cfg.h | ||
dpc.c | ||
dpc.h | ||
firmware.c | ||
firmware.h | ||
hostap.c | ||
hostap.h | ||
int.c | ||
int.h | ||
iocmd.h | ||
ioctl.c | ||
ioctl.h | ||
iowpa.h | ||
iwctl.c | ||
iwctl.h | ||
Kconfig | ||
key.c | ||
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 | ||
wpa.c | ||
wpa.h | ||
wpa2.c | ||
wpa2.h | ||
wpactl.c | ||
wpactl.h |