Skip to content
Commit 6c44b15e authored by Kangjie Lu's avatar Kangjie Lu Committed by Jiri Kosina
Browse files

HID: logitech: check the return value of create_singlethread_workqueue



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: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 94a9992f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment