https://github.com/torvalds/linux
Revision 356050d8b1e526db093e9d2c78daf49d6bf418e3 authored by Johan Hovold on 19 March 2013, 08:21:13 UTC, committed by Greg Kroah-Hartman on 21 March 2013, 22:59:03 UTC
Use the port wait queue and make sure to check the serial disconnected
flag before accessing private port data after waking up.

This is is needed as the private port data (including the wait queue
itself) can be gone when waking up after a disconnect.

Also remove bogus test for private data pointer being NULL as it is
never assigned in the loop.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fa1e11d
History
Tip revision: 356050d8b1e526db093e9d2c78daf49d6bf418e3 authored by Johan Hovold on 19 March 2013, 08:21:13 UTC
USB: cypress_m8: fix use-after-free in TIOCMIWAIT
Tip revision: 356050d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 243.2 KB
Makefile -rw-r--r-- 47.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top