Re: [PATCH v3] hid: logitech: check the return value of create_singlethread_workqueue

From: Jiri Kosina
Date: Tue Mar 19 2019 - 06:49:00 EST


On Thu, 14 Mar 2019, Kangjie Lu wrote:

> create_singlethread_workqueue may fail and return NULL. The fix
> checks if it is NULL to avoid NULL pointer dereference.
> Also, the fix moves the call of create_singlethread_workqueue
> earlier to avoid resource-release issues.
>
> --
> V3: do not introduce memory leaks.
>
> Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>

The signoff has to be in the commit log, not in the "notes" area. I've
fixed that and applied.

--
Jiri Kosina
SUSE Labs