]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54537b8a414e9e848cadd8495f99aeba0931c59b
tree242a2b260203d36297d777b14224632f78b1c65a
parentf64ec9fab34783b73a6c2dad7c171b914e53ff79
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: e0c3fa9d9f4d ("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