diff options
author | Liang He <windhl@126.com> | 2022-09-19 18:48:24 +0800 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2022-09-19 15:30:16 +0200 |
commit | 61dfa797c731754642d1ac500a6ac42f9b47f920 (patch) | |
tree | 13bd4584403350ae7845faf4bd515a2beeb45246 /drivers/usb/serial/ftdi_sio.c | |
parent | USB: serial: ftdi_sio: convert to use dev_groups (diff) | |
download | linux-dev-61dfa797c731754642d1ac500a6ac42f9b47f920.tar.xz linux-dev-61dfa797c731754642d1ac500a6ac42f9b47f920.zip |
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>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
0 files changed, 0 insertions, 0 deletions