[SRU] [B/C] [PATCH 0/1] Fix null pointer dereference when xHCI gets unplugged
Kai-Heng Feng
kai.heng.feng at canonical.com
Mon May 14 08:21:19 UTC 2018
BugLink: https://bugs.launchpad.net/bugs/1768852
[Impact]
When unplugging the Thunderbolt 3 cable from the TBT controller, kernel
oops.
[Test]
The user confirms this patch works.
[Fix]
tty_unregister_driver may be called more than 1 time in some
hotplug cases,it will cause the kernel oops. This patch checked
dbc_tty_driver to make sure it is unregistered only 1 time.
[Regression Potential]
Low. The change is to guard against null pointer, so it's the correct
behavior.
Zhengjun Xing (1):
xhci: Fix Kernel oops in xhci dbgtty
drivers/usb/host/xhci-dbgtty.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
2.17.0
More information about the kernel-team
mailing list