Thread (5 messages) 5 messages, 3 authors, 2018-05-29

Re: [PATCH] mac80211_hwsim: add error check to call to rhashtable_init

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2018-05-29 09:17:17
Also in: kernel-janitors, linux-wireless, lkml

On Tue, 2018-05-29 at 10:14 +0100, Colin King wrote:
quoted hunk ↗ jump to hunk
@@ -3573,7 +3573,9 @@ static int __init init_mac80211_hwsim(void)
 	hwsim_wq = alloc_workqueue("hwsim_wq", 0, 0);
 	if (!hwsim_wq)
 		return -ENOMEM;
-	rhashtable_init(&hwsim_radios_rht, &hwsim_rht_params);
+	err = rhashtable_init(&hwsim_radios_rht, &hwsim_rht_params);
+	if (err)
+		return err;
That's missing a workqueue free, but I can fix that while applying if
you prefer.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help