git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d269d44
)
USB: console: fix potential use after free
author
Johan Hovold
<johan@kernel.org>
Mon, 5 Jan 2015 15:04:13 +0000
(16:04 +0100)
committer
Johan Hovold
<johan@kernel.org>
Sat, 10 Jan 2015 11:48:21 +0000
(12:48 +0100)
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>
drivers/usb/serial/console.c
patch
|
blob
|
history
diff --cc
drivers/usb/serial/console.c
Simple merge