diff options
author | Johan Hovold <[email protected]> | 2021-10-08 12:25:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-10-11 07:42:18 +0200 |
commit | 880de403777376e50bdf60def359fa50a722006f (patch) | |
tree | c92062b33c2b03023f14b9a2f5de5da228c0eda8 /scripts/gdb/linux/utils.py | |
parent | 5255660b208aebfdb71d574f3952cf48392f4306 (diff) |
USB: xhci: dbc: fix tty registration race
Make sure to allocate resources before registering the tty device to
avoid having a racing open() and write() fail to enable rx or
dereference a NULL pointer when accessing the uninitialised fifo.
Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver")
Cc: [email protected] # 4.16
Cc: Lu Baolu <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions