]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix module init error paths
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 May 2018 10:04:51 +0000 (12:04 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Fri, 15 Jun 2018 11:02:02 +0000 (13:02 +0200)
commitfa42397dfb5afac3f6e196f03c2999bdf91a9666
treef6977da2207b9a00d14dcdc69815e1035508f446
parentfb14bafe0884bf72ea8ba751d622336c0593207c
mac80211_hwsim: fix module init error paths

We didn't free the workqueue on any errors, nor did we
correctly check for rhashtable allocation errors, nor
did we free the hashtable on error.

Reported-by: Colin King <colin.king@canonical.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
drivers/net/wireless/mac80211_hwsim.c