staging: rtl8192e: rtl8192e: rtl_core.c: Audit the return value of register_netdev()
authorKumar Amit Mehta <gmate.amit@gmail.com>
Thu, 15 Nov 2012 17:22:13 +0000 (22:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 23:26:14 +0000 (15:26 -0800)
commit4087641b255cb003ce653aac79e3445fcb864552
tree007e6d903783e2f684ea4a8ccc0dea5b1b259279
parentdba2939c8d4128664ddfddc169b32ae4b39aebc1
staging: rtl8192e: rtl8192e: rtl_core.c: Audit the return value of register_netdev()

Inspect the return value of register_netdev() in the driver probe routine and
return -ENODEV in case of error.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c