From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [PATCH] mac80211_hwsim: add error check to call to rhashtable_init Date: Tue, 29 May 2018 11:17:08 +0200 Message-ID: <1527585428.6955.7.camel@sipsolutions.net> References: <20180529091412.8530-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: Colin King , Kalle Valo , "David S . Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Return-path: In-Reply-To: <20180529091412.8530-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 2018-05-29 at 10:14 +0100, Colin King wrote: > > @@ -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