aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorThilo-Alexander Ginkel <thilo@ginkel.com>2011-12-17 10:55:10 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-12 11:35:53 -0800
commit68f760945cb704f4a9d0ae7c4abc9e41ca30aa91 (patch)
tree942476ec3e00dd27a2b3e5c98b2f5517d4c64d64 /fs/xfs
parent18366c3fed0c372f9c123489e7061de11b640965 (diff)
usb: cdc-acm: Fix acm_tty_hangup() vs. acm_tty_close() race
[Not upstream as it was fixed differently for 3.3 with a much more "intrusive" rework of the driver - gregkh] There is a race condition involving acm_tty_hangup() and acm_tty_close() where hangup() would attempt to access tty->driver_data without proper locking and NULL checking after close() has potentially already set it to NULL. One possibility to (sporadically) trigger this behavior is to perform a suspend/resume cycle with a running WWAN data connection. This patch addresses the issue by introducing a NULL check for tty->driver_data in acm_tty_hangup() protected by open_mutex and exiting gracefully when hangup() is invoked on a device that has already been closed. Signed-off-by: Thilo-Alexander Ginkel <thilo@ginkel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions