OSDN Git Service

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)
commit3f61b7a30a6a8fd917d7570cb00a26a054d84ab4
treef6977da2207b9a00d14dcdc69815e1035508f446
parent3c12d0486856b9eb89c2a9ac336713cba90813e3
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