diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-10 11:52:05 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-10 11:52:05 +0000 |
commit | fce6bd84d663b92997e0fa9c971ed2b2cdf08fb4 (patch) | |
tree | c5b460cfc60b16a7c6718ae2613bb1d9cb98e5b8 /drivers/staging/vt6656/hostap.c | |
parent | 56d37d85438df38e150282baafe52dcd588854c7 (diff) | |
parent | 374b105797c3d4f29c685f3be535c35f5689b30e (diff) |
Merge tag 'v3.13-rc3' into asoc-arizona
Linux 3.13-rc3
Diffstat (limited to 'drivers/staging/vt6656/hostap.c')
-rw-r--r-- | drivers/staging/vt6656/hostap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c index ae1676d190c5..67ba48b9a8d9 100644 --- a/drivers/staging/vt6656/hostap.c +++ b/drivers/staging/vt6656/hostap.c @@ -133,7 +133,8 @@ static int hostap_disable_hostapd(struct vnt_private *pDevice, int rtnl_locked) DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Netdevice %s unregistered\n", pDevice->dev->name, pDevice->apdev->name); } - free_netdev(pDevice->apdev); + if (pDevice->apdev) + free_netdev(pDevice->apdev); pDevice->apdev = NULL; pDevice->bEnable8021x = false; pDevice->bEnableHostWEP = false; |