linux/drivers/staging/rtl8192u
Christophe JAILLET 5fef87cbbf staging: rtl8192u: Check some memory allocation failure
If one of these memory allocations fail, a NULL pointer dereference will
occur later on.
Return -ENOMEM instead.

There is no need to free the resources already allocated, this is done
by the caller (i.e. 'rtl8192_usb_probe()') which calls
'rtl8192_usb_deleteendpoints()'.

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
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
r8180_93cx6.h
r8190_rtl8256.c
r8190_rtl8256.h
r8192U_core.c staging: rtl8192u: Check some memory allocation failure 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