From: Johan Hovold Date: Mon, 5 Jan 2015 15:04:13 +0000 (+0100) Subject: USB: console: fix potential use after free X-Git-Tag: fixes-v4.0-rc1~286^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a4bf2e81ec378e5925d4e069e0677a6c86a6ad;p=pandora-kernel.git 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 Signed-off-by: Johan Hovold --- Reading git-diff-tree failed