]> 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)
commit658fcded3ceee6fcb21d7f27f0b6940356fdcf0e
treef6977da2207b9a00d14dcdc69815e1035508f446
parent089c081bc681542b94820e3837b38d95948d3fc2
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