OpenCloudOS-Kernel/drivers/staging/rtl8712
Dan Carpenter b5eed730bd staging: rtl8712: freeing an ERR_PTR
If memdup_user() fails then "pparmbuf" is an error pointer and we can't
pass it to kfree().  I changed the "goto _r871x_mp_ioctl_hdl_exit" to a
direct return.

I changed the earlier goto to a direct return as well for consistency
and removed the "pparmbuf = NULL" initializer since it's no longer
needed.

Fixes: 45de432775 ('Staging: rtl8712: Use memdup_user() instead of copy_from_user()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-08 01:58:04 +02:00
..
Kconfig Kconfig: Remove useless "default N" lines 2014-02-20 14:38:06 +01:00
Makefile
TODO
basic_types.h
drv_types.h staging: rtl8712: Do coding style cleanup 2015-02-07 17:39:50 +08:00
ethernet.h rtl8712: remove unused definitions from ethernet.h 2013-01-11 16:39:12 -08:00
hal_init.c Staging rtl8172: Remove unnecessary typecast 2015-03-09 13:37:22 +01:00
ieee80211.c staging: rtl8712: remove unused variables 2014-10-29 17:37:26 +08:00
ieee80211.h staging: rtl8712, rtl8712: avoid lots of build warnings 2014-06-19 16:44:04 -07:00
mlme_linux.c Staging: rtl8712: Eliminate use of _init_timer 2015-03-06 09:54:34 -08:00
mlme_osdep.h
mp_custom_oid.h
os_intfs.c staging: rtl8712: Drop unneeded cast on netdev_priv 2015-04-03 15:15:40 +02:00
osdep_intf.h
osdep_service.h Staging: rtl8712: Eliminate use of _cancel_timer 2015-03-16 15:46:07 +01:00
recv_linux.c Staging: rtl8712: Eliminate use of _init_timer 2015-03-06 09:54:34 -08:00
recv_osdep.h staging: rtl8712: recv_linux: Remove unused function 2015-01-25 19:59:18 +08:00
rtl871x_cmd.c Staging: rtl8712: Eliminate use of _cancel_timer 2015-03-16 15:46:07 +01:00
rtl871x_cmd.h staging: rtl8712: remove wrapper function _init_listhead 2014-06-26 20:33:15 -04:00
rtl871x_debug.h
rtl871x_eeprom.c staging: rtl8712: rewrite the right hand side of an assignment 2015-02-26 15:23:47 -08:00
rtl871x_eeprom.h
rtl871x_event.h
rtl871x_ht.h
rtl871x_io.c staging: rtl8712: Remove unnecessary cast for argument of kfree 2014-10-20 10:29:19 +08:00
rtl871x_io.h staging: rtl8712: add new line after declarations 2014-09-28 22:41:23 -04:00
rtl871x_ioctl.h Staging: rtl8712: Add space after return type 2014-09-23 08:14:36 -07:00
rtl871x_ioctl_linux.c staging: rtl8712: freeing an ERR_PTR 2015-05-08 01:58:04 +02:00
rtl871x_ioctl_rtl.c Staging: rtl8712: fix spaces before semicolons 2013-10-03 13:50:54 -07:00
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c Staging: rtl8712: Remove duplicated argument to | 2015-04-01 17:26:58 +02:00
rtl871x_ioctl_set.h
rtl871x_led.h staging: rtl8712: remove #define _workitem struct work_struct 2014-07-09 12:30:46 -07:00
rtl871x_mlme.c Staging: rtl8712: fix potential null pointer dereference 2015-03-16 15:48:20 +01:00
rtl871x_mlme.h
rtl871x_mp.c staging: rtl8712: remove extra parentheses around right bit shift operation 2015-03-06 15:22:43 -08:00
rtl871x_mp.h Staging: rtl8712: remove semicolon after macro 2014-09-23 08:04:57 -07:00
rtl871x_mp_ioctl.c staging: rtl8712: remove unused function 2015-01-25 19:59:19 +08:00
rtl871x_mp_ioctl.h staging: rtl8712: rtl871x_mp_ioctl.c: Remove some unused functions 2015-01-17 14:10:03 -08:00
rtl871x_mp_phy_regdef.h
rtl871x_pwrctrl.c Staging: rtl8712: Eliminate use of _cancel_timer_ex 2015-03-16 15:46:07 +01:00
rtl871x_pwrctrl.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl871x_recv.c staing: rtl8712: else after return or break warning 2015-02-26 15:08:36 -08:00
rtl871x_recv.h staging: rtl8712: remove unused variables 2014-10-29 17:37:26 +08:00
rtl871x_rf.h
rtl871x_security.c Staging: rtl8712: Remove zero-testing pointer typed value 2015-04-01 17:26:58 +02:00
rtl871x_security.h Staging: rtl8712: Eliminate use of _init_timer 2015-03-06 09:54:34 -08:00
rtl871x_sta_mgt.c Staging: rtl8712: Eliminate use of _cancel_timer_ex 2015-03-16 15:46:07 +01:00
rtl871x_wlan_sme.h
rtl871x_xmit.c Staging: rtl8712: Eliminate use of _cancel_timer 2015-03-16 15:46:07 +01:00
rtl871x_xmit.h staging: rtl8712: remove #define _workitem struct work_struct 2014-07-09 12:30:46 -07:00
rtl8712_bitdef.h
rtl8712_cmd.c staging: rtl8712: rewrite the right hand side of an assignment 2015-02-26 15:23:47 -08:00
rtl8712_cmd.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl8712_cmdctrl_bitdef.h
rtl8712_cmdctrl_regdef.h
rtl8712_debugctrl_bitdef.h
rtl8712_debugctrl_regdef.h
rtl8712_edcasetting_bitdef.h
rtl8712_edcasetting_regdef.h
rtl8712_efuse.c staging: rtl8712: remove unused variables 2014-10-29 17:37:26 +08:00
rtl8712_efuse.h
rtl8712_event.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
rtl8712_fifoctrl_bitdef.h
rtl8712_fifoctrl_regdef.h
rtl8712_gp_bitdef.h
rtl8712_gp_regdef.h
rtl8712_hal.h
rtl8712_interrupt_bitdef.h
rtl8712_io.c staging: rtl8712: add new line after declarations 2014-09-28 22:41:23 -04:00
rtl8712_led.c Staging: rtl8712: Eliminate use of _cancel_timer_ex 2015-03-16 15:46:07 +01:00
rtl8712_macsetting_bitdef.h
rtl8712_macsetting_regdef.h
rtl8712_powersave_bitdef.h
rtl8712_powersave_regdef.h
rtl8712_ratectrl_bitdef.h
rtl8712_ratectrl_regdef.h
rtl8712_recv.c staging: rtl8712: remove extra parentheses around right bit shift operation 2015-03-06 15:22:43 -08:00
rtl8712_recv.h staging: r8712u: Reduce maximum receive buffer size to a more sensible value 2012-08-13 19:25:48 -07:00
rtl8712_regdef.h
rtl8712_security_bitdef.h
rtl8712_spec.h
rtl8712_syscfg_bitdef.h
rtl8712_syscfg_regdef.h
rtl8712_timectrl_bitdef.h
rtl8712_timectrl_regdef.h
rtl8712_wmac_bitdef.h
rtl8712_wmac_regdef.h
rtl8712_xmit.c staging: rtl8712: add new line after declarations 2014-09-28 22:41:23 -04:00
rtl8712_xmit.h
sta_info.h staging: rtl8712: remove spaces before commas 2015-01-17 14:20:25 -08:00
usb_halinit.c
usb_intf.c staging: rtl8712: fix Prefer ether_addr_copy() over memcpy() 2015-02-07 17:15:43 +08:00
usb_ops.c
usb_ops.h
usb_ops_linux.c staging: rtl8712: remove unused variables 2014-10-29 17:37:26 +08:00
usb_osintf.h staging: r8712u: Remove defines that are not used 2012-09-04 14:14:08 -07:00
wifi.h Staging: rtl8712: Replace __constant_cpu_to_le16 2015-03-16 15:48:20 +01:00
wlan_bssdef.h
xmit_linux.c staging: rtl8712: Drop unneeded cast on netdev_priv 2015-04-03 15:15:40 +02:00
xmit_osdep.h