]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rtl8192u: check return code kmalloc.
authorDavid Chosrova <david.chosrova@libertysurf.fr>
Wed, 1 Dec 2010 12:42:16 +0000 (13:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Dec 2010 22:53:34 +0000 (14:53 -0800)
commitb834517572d19d34c9cd9adb878aec3138db9224
treeb22f8aa203cb0dc3eb7486d1e681b48773145ef7
parent8c66be9203d891ea37346a78925f0e6534b98bd3
Staging: rtl8192u: check return code kmalloc.

This patch checks the return code of  kmalloc when trying to allocate
memory for priv->rx_urb in rtl8192_usb_initendpoints(), return -ENOMEM
when failed.

Signed-off-by: David Chosrova <david.chosrova@libertysurf.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192u/r8192U_core.c