lkml.org 
[lkml]   [2018]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mac80211_hwsim: add error check to call to rhashtable_init
From
Date
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

\
 
 \ /
  Last update: 2018-05-29 11:18    [W:0.049 / U:3.544 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site