mac80211_hwsim: unregister genetlink family properly
authorSu Kang Yin <cantona@cantona.net>
Fri, 7 Aug 2015 08:54:10 +0000 (16:54 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Aug 2015 15:49:52 +0000 (17:49 +0200)
commit2459cd876e2828dc63c19ea5dadf8a94a8f11244
treedaf6b1b29a06a2ee41fdc2817bfd031051e239d0
parentb119ad6e726cc805f739f8f6843b9de4df1f895e
mac80211_hwsim: unregister genetlink family properly

During hwsim_init_netlink(), we should call genl_unregister_family()
if failed on netlink_register_notifier() since the genetlink is
already registered.

Signed-off-by: Su Kang Yin <cantona@cantona.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c