1
0
Fork 0
alistair23-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 staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
Kconfig Staging: vt665?: prevent modules from being built into the kernel. 2011-04-04 21:33:26 -07:00
Makefile Staging: vt6656: Makefile: cleaned up Makefile cflag lines 2010-10-05 11:56:38 -07:00
TODO
aes_ccmp.c Staging: vt6656: fix up built-in compilation together with rt2870 2010-06-18 10:37:48 -07:00
aes_ccmp.h
baseband.c staging: vt6656: baseband.c: Remove commented code 2011-11-30 19:28:18 +09:00
baseband.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
bssdb.c staging: Fix typo in bssdb.c 2012-02-24 12:05:37 -08:00
bssdb.h Staging: vt6656: Remove PUINT from ttype.h 2010-08-02 18:16:27 -07:00
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 staging: vt6656: removed dummy errors like extra spaces 2010-09-16 12:37:35 -07:00
channel.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
control.c staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
control.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
country.h
datarate.c staging: vt6656: removed '#if 1'/'#if 0' definitions 2010-07-22 11:42:00 -07:00
datarate.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
desc.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
device.h vt6656: Use request_firmware() to load firmware 2011-01-21 12:19:11 -08:00
device_cfg.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
dpc.c staging: vt6656: use %pM for printing MACs 2011-08-23 14:36:18 -07:00
dpc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
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 Staging: vt665x: remove unused DEF definition 2010-09-16 13:02:36 -07:00
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 Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
iowpa.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
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
key.c Staging: vt6655-6: check keysize before memcpy() 2012-04-10 09:17:34 -07:00
key.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
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
mib.c staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
mib.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
michael.c Staging: vt6656: code cleanup, fixed 'for' statements 2010-06-18 10:34:59 -07:00
michael.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
power.c Staging: vt6656: Clean up switching to power saving mode. 2011-03-02 15:52:30 -05:00
power.h Staging: vt665*: fix typos concerning "management" 2010-06-18 10:42:07 -07:00
rc4.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rc4.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rf.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rf.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
rndis.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
rxtx.c staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
rxtx.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
srom.h
tcrc.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tcrc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tether.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tether.h staging: vt6656: removed custom definitions of Ethernet packet types 2010-08-31 11:31:25 -07:00
tkip.c staging: vt6656 resolved parenthesis not spaces 2010-11-09 15:55:54 -08:00
tkip.h
tmacro.h
ttype.h Staging: vt6656: Remove PUINT from ttype.h 2010-08-02 18:16:27 -07:00
upc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
usbpipe.c staging: vt6656: removed macro to test bits 2010-08-31 11:31:26 -07:00
usbpipe.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
vntconfiguration.dat
wcmd.c staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
wcmd.h staging: vt6656: removed TxInSleep definition 2010-07-08 13:01:05 -07:00
wctl.c staging: vt6656: replace IS_ETH_ADDRESS_EQUAL with compare_ether_addr 2010-06-24 14:15:07 -07:00
wctl.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
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 staging: vt6656: removed extra spaces 2010-08-31 11:35:05 -07:00
wpa.h
wpa2.c drivers/staging: Remove unnecessary semicolons 2010-11-16 12:06:47 -08:00
wpa2.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
wpactl.c staging, vt6656/wpactl.c: Fix mem leak in wpa_ioctl() 2012-02-09 09:20:06 -08:00
wpactl.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00