linux/drivers/staging/rtl8192u
Christophe JAILLET 6e6c6dee6a staging: rtl8192u: Fix some error handling path
If 'rtl8192_usb_initendpoints()' fails, it may have allocated some
resources that need to be freed. The corresponding is propagated up to
'rtl8192_usb_prob()'. So, in this function if an error
code is returned by 'rtl8192_init()' we should call
'rtl8192_usb_deleteendpoints()'.

Some error handling code is also duplicated in 'rtl8192_init()' and in
'rtl8192_usb_prob()'. This looks harmless because the freed pointers are
set to NULL but it looks confusing.

Fix all that by just moving the 'fail' label and removing duplicated
error handling code from 'rtl8192_ini()'. All this resources freeing will
be handled by 'rtl8192_usb_prob()' directly.

The calling graph is:
rtl8192_usb_probe
  --> rtl8192_init
    --> rtl8192_usb_initendpoints

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-03 18:34:57 +02:00
..
ieee80211 Staging: rtl8192u: ieee80211: Use netdev_info instead of printk 2017-09-22 10:53:45 +02:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c staging: rtl8192u: fix incorrect mask and shift on u8 data 2017-07-27 21:51:06 -07:00
r819xU_cmdpkt.h Staging: rtl8192u: r819xU_cmdpkt.h - style fix 2017-02-12 13:37:13 +01:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: Fixing no new typedef warning 2017-02-12 13:48:33 +01:00
r819xU_firmware.h
r819xU_phy.c staging: rtl8192u: fix spelling mistake in variable name *attentuation 2017-04-28 12:27:50 +02:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c Staging: rtl8192u: r8180_93cx6.c - style fix 2017-02-12 13:40:47 +01:00
r8180_93cx6.h
r8190_rtl8256.c Staging: rtl8192u: r8190_rtl8256.c - style fix 2017-02-12 13:40:47 +01:00
r8190_rtl8256.h Staging: rtl8192u: r8190_rtl8256.h - style fix 2017-02-12 13:40:47 +01:00
r8192U_core.c staging: rtl8192u: Fix some error handling path 2017-10-03 18:34:57 +02:00
r8192U_dm.c staging: rtl8192u: Convert u4bAcParam to little-endian 2017-05-15 07:41:57 +02:00
r8192U_dm.h
r8192U_hw.h staging: rtl8192u: Fix braces placement and spacing 2017-07-16 08:41:02 +02:00
r8192U_wx.c staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00
r8192U_wx.h staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00
r8192U.h staging: rtl8192u - add parameter names 2017-06-25 16:31:22 +02:00