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

2019-03-12 Thread Jonathan Corbet
On Tue, 12 Mar 2019 01:16:28 -0500 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. > >

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

2019-03-12 Thread Kangjie Lu
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. Signed-off-by: Kangjie Lu --- drivers/hid/hid-logitech-hidpp.c | 8