diff options
author | 2017-04-30 13:21:26 +0300 | |
---|---|---|
committer | 2017-05-16 14:11:04 +0300 | |
commit | 844cf8a9d51f1d1e116d0bb18c353a2a94c70e79 (patch) | |
tree | 1aba56ae033ac8b08f305c3d9f63c9db110a4bdf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: dwc3: gadget: Prevent losing events in event cache (diff) | |
download | wireguard-linux-844cf8a9d51f1d1e116d0bb18c353a2a94c70e79.tar.xz wireguard-linux-844cf8a9d51f1d1e116d0bb18c353a2a94c70e79.zip |
usb: gadget: gserial: check if console kthread exists
Check for bad pointer that may result because of kthread_create failure.
This check is needed since the gserial setup callback function
(gs_console_setup()) is only freeing the info->con_buf in case of
kthread_create failure which will result into bad info->console_thread
pointer.
Without checking info->console_thread pointer validity in the
gserial_console_exit() function, before calling kthread_stop(), the
rmmod will generate Kernel Oops.
Signed-off-by: Bogdan Mirea <Bogdan-Stefan_mirea@mentor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions