commit | 32a4bf2e81ec378e5925d4e069e0677a6c86a6ad | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Jan 05 16:04:13 2015 +0100 |
committer | Johan Hovold <johan@kernel.org> | Sat Jan 10 12:48:21 2015 +0100 |
tree | 7060d862f8df27bd46007e6d30ac38ca2e8eafa2 | |
parent | d269d4434c72ed0da3a9b1230c30da82c4918c63 [diff] |
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>