wext: unregister_pernet_subsys() on notifier registration failure
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 Mar 2016 13:29:08 +0000 (14:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:48:44 +0000 (10:48 +0200)
commit98bd147d7903580ca5d5dfa0bc39c2d16714d84e
tree665ab939fa6de287c4a70ca1e087d8a920f734b7
parent05cf8077e54b20dddb756eaa26f3aeb5c38dd3cf
wext: unregister_pernet_subsys() on notifier registration failure

If register_netdevice_notifier() fails (which in practice it can't
right now), we should call unregister_pernet_subsys(). Do that.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-core.c