diff options
author | Johan Hovold <johan@kernel.org> | 2015-01-05 16:04:13 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2015-01-10 12:48:21 +0100 |
commit | 32a4bf2e81ec378e5925d4e069e0677a6c86a6ad (patch) | |
tree | 7060d862f8df27bd46007e6d30ac38ca2e8eafa2 /drivers/usb/serial/generic.c | |
parent | d269d4434c72ed0da3a9b1230c30da82c4918c63 (diff) | |
download | linux-32a4bf2e81ec378e5925d4e069e0677a6c86a6ad.tar.gz linux-32a4bf2e81ec378e5925d4e069e0677a6c86a6ad.tar.bz2 linux-32a4bf2e81ec378e5925d4e069e0677a6c86a6ad.zip |
USB: console: fix potential use after free
Use tty kref to release the fake tty in usb_console_setup to avoid use
after free if the underlying serial driver has acquired a reference.
Note that using the tty destructor release_one_tty requires some more
state to be initialised.
Fixes: 4a90f09b20f4 ("tty: usb-serial krefs")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/generic.c')
0 files changed, 0 insertions, 0 deletions