OSDN Git Service

mac80211_hwsim: fix module init error paths for netlink
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 5 Oct 2018 20:22:06 +0000 (23:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 07:47:37 +0000 (08:47 +0100)
commit05cc09de4c017663a217630682041066f2f9a5cd
tree242a2b260203d36297d777b14224632f78b1c65a
parentea53abfab960909d622ca37bcfb8e1c5378d21cc
mac80211_hwsim: fix module init error paths for netlink

There is no unregister netlink notifier and family on error paths
in init_mac80211_hwsim(). Also there is an error path where
hwsim_class is not destroyed.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 62759361eb49 ("mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c