]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:11:35 +0000 (14:11 +0100)
commit3e5d4c14a7427dc2a24737c8dcc61688870d737a
treed7b06fae273efa4fabb32f7f42d4cab67303a2d1
parentc6bcf40f769294a80c64213f9175ccd408d64532
mac80211_hwsim: fix module init error paths for netlink

[ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mac80211_hwsim.c