staging: rtl8187se: r8180_core.c: Inspect the return value of register_netdev()
authorKumar Amit Mehta <gmate.amit@gmail.com>
Wed, 14 Nov 2012 10:00:57 +0000 (15:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:34:58 +0000 (16:34 -0800)
commit36e97a5714073a1f95c70cbb925928ca7315fb66
tree08c8a5b83fe3def754a7584539fc1b8b27e68a65
parentc17d37df984b0eaf67d422b2698755fe71d6d1e0
staging: rtl8187se: r8180_core.c: Inspect 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/rtl8187se/r8180_core.c