[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac6cea459c697db7aec99b8c0c5c0b3bf76b5877.camel@sipsolutions.net>
Date: Thu, 19 Sep 2019 16:47:23 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Allen <allen.pais@...cle.com>, kvalo@...eaurora.org
Cc: davem@...emloft.net, linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iwlwifi: fix a potential NULL pointer dereference
On Thu, 2019-09-19 at 19:37 +0530, Allen wrote:
> >
> > + trans_pcie->rba.alloc_wq = alloc_workqueue("rb_allocator",
> > + WQ_HIGHPRI | WQ_UNBOUND, 1);
> > + if (!trans_pcie->rba.alloc_wq) {
>
> I would like to stick to if(unlikely(!trans_pcie->rba.alloc_wq) just
> for consistency.
That's just clutter, this path gets called exactly once in the lifetime
of most systems ...
> Let me know if I could add your SOB and send out V2.
No no, I've already sent the patch on the way internally :)
johannes
Powered by blists - more mailing lists