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)
commitc7a61cba71fd151cc7d9ebe53a090e0e61eeebf3
tree3b8b1365c8ca48422d4fa366838c799d3880b55a
parent773fc8f6e8d63ec9d840588e161cbb73a01cfc45
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: cf124db566e6 ("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