]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: free netdev on dev_alloc_name() error
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Jun 2017 19:33:09 +0000 (21:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2017 19:40:15 +0000 (15:40 -0400)
commit26522cf4af645e781a6b400400387d37977a67e2
tree3b8b1365c8ca48422d4fa366838c799d3880b55a
parent7275a140ab1c7ce9a5d5be505f8c3a42a45d8173
mac80211: free netdev on dev_alloc_name() error

The change to remove free_netdev() from ieee80211_if_free()
erroneously didn't add the necessary free_netdev() for when
ieee80211_if_free() is called directly in one place, rather
than as the priv_destructor. Add the missing call.

Fixes: 4ec503a11a56 ("net: Fix inconsistent teardown and release of private netdev state.")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/iface.c