Re: [PATCH] workqueue: Fix NULL pointer dereference

From: Tejun Heo
Date: Thu Oct 26 2017 - 13:56:09 EST


Hello,

On Thu, Oct 26, 2017 at 11:55:00PM +0800, Lai Jiangshan wrote:
> I remember that softirq can be invoked when irq_eixt(),
> and in this case the current->current_pwq is also NULL
> if __queue_work() is called in the soft irq.
>
> So in_task() might be better than !in_irq() for the fix?

Reverted the patch for now. Li, what do you think?

Thanks.

--
tejun