Liang He 61dfa797c7 USB: serial: console: move mutex_unlock() before usb_serial_put()
While in current version there is no use-after-free as USB serial
core holds another reference when the console is registered, we
should better unlock before dropping the reference in
usb_console_setup().

Fixes: 7bd032dc2793 ("USB serial: update the console driver")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
2022-09-19 15:30:16 +02:00
..
2022-05-19 18:26:16 +02:00
2021-07-21 11:53:42 +02:00
2022-07-25 11:28:52 +02:00
2022-05-19 18:26:16 +02:00