projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UPSTREAM mwifiex: fix memory leak issue when driver unload
[cascardo/linux.git]
/
drivers
/
net
/
wireless
/
mwifiex
/
cfg80211.c
diff --git
a/drivers/net/wireless/mwifiex/cfg80211.c
b/drivers/net/wireless/mwifiex/cfg80211.c
index
23f79da
..
54cb8c6
100644
(file)
--- a/
drivers/net/wireless/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/mwifiex/cfg80211.c
@@
-1611,9
+1611,6
@@
int mwifiex_del_virtual_intf(struct wiphy *wiphy, struct net_device *dev)
if (dev->reg_state == NETREG_REGISTERED)
unregister_netdevice(dev);
- if (dev->reg_state == NETREG_UNREGISTERED)
- free_netdev(dev);
-
/* Clear the priv in adapter */
priv->netdev = NULL;