diff options
-rw-r--r-- | drivers/staging/vt6655/hostap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 46f097d0c841..57a08c5771f2 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c @@ -104,6 +104,8 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) if (ret) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: register_netdevice(AP) failed!\n", dev->name); + free_netdev(pDevice->apdev); + pDevice->apdev = NULL; return -1; } |