Re: [PATCH] l2tp: Fix possible NULL pointer dereference

From: Guillaume Nault
Date: Tue May 07 2019 - 05:24:00 EST


On Mon, May 06, 2019 at 10:44:04PM +0800, YueHaibing wrote:
> If alloc_workqueue fails in l2tp_init, l2tp_net_ops
> is unregistered on failure path. Then l2tp_exit_net
> is called which will flush NULL workqueue, this patch
> add a NULL check to fix it.
>
Thanks!

Acked-by: Guillaume Nault <gnault@xxxxxxxxxx>