staging: rtl8712: Fix oops on dongle removal if firmware is not available
authorThomas Vegas <thomas@grouk.net>
Sun, 1 Jun 2014 12:34:39 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 23:40:07 +0000 (16:40 -0700)
commit5947956bdcf1aff31caba90f80f363340e18cb56
treeec1026e862031da7f8176ff479ced2d8b91a7097
parent5c3ddb3a4c3ef5edea7376ed80b032cf2e4afb71
staging: rtl8712: Fix oops on dongle removal if firmware is not available

When firmware is not available, net device is not created. Upon
disconnect, we must check for net device existence before trying to
release net device private data.

Signed-off-by: Thomas Vegas <thomas@grouk.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_intf.c