commit | 810360a03597afc0d43a45798a52cfb69b8453d3 | [log] [tgz] |
---|---|---|
author | Johan Hovold <jhovold@gmail.com> | Mon Jan 14 16:52:56 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 18 15:45:17 2013 -0800 |
tree | 977253346afd738d334a73de671cbd9f2102d809 | |
parent | fcdb6a21903bcab0b5f788ba7eb0c31dd06040fd [diff] |
USB: serial: grab disconnect mutex in chars_in_buffer Grab disconnect mutex in chars_in_buffer before checking disconnected flag or calling driver specific function. This allows subdrivers to query any hardware buffer status without having to handle the locking themselves. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>