diff options
author | 2019-03-14 00:24:02 -0500 | |
---|---|---|
committer | 2019-03-19 11:47:31 +0100 | |
commit | 6c44b15e1c9076d925d5236ddadf1318b0a25ce2 (patch) | |
tree | 147f038986d66f05982ef1d8df8b0a39d12636e3 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | HID: Increase maximum report size allowed by hid_field_extract() (diff) | |
download | wireguard-linux-6c44b15e1c9076d925d5236ddadf1318b0a25ce2.tar.xz wireguard-linux-6c44b15e1c9076d925d5236ddadf1318b0a25ce2.zip |
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: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions