Home
last modified time | relevance | path

Searched hist:"61 dfa797c731754642d1ac500a6ac42f9b47f920" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/serial/
H A Dconsole.cdiff 61dfa797c731754642d1ac500a6ac42f9b47f920 Mon Sep 19 05:48:24 CDT 2022 Liang He <windhl@126.com> 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>