diff options
| author | Arnd Bergmann <[email protected]> | 2010-06-01 20:53:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-08-10 20:47:43 +0000 |
| commit | 64ba3dc3143d94bbe935722aa17fa516b232bc83 (patch) | |
| tree | 9649ffd431eb8dc97fbad83d47feaed96980cb7e /drivers/usb/class/cdc-acm.c | |
| parent | tty: replace BKL with a new tty_lock (diff) | |
| download | kernel-64ba3dc3143d94bbe935722aa17fa516b232bc83.tar.gz kernel-64ba3dc3143d94bbe935722aa17fa516b232bc83.zip | |
tty: never hold BTM while getting tty_mutex
tty_mutex is never taken with the BTM held, except for
two corner cases that are worked around here.
We give up the BTM before calling tty_release() in the
error path of tty_open().
Similarly, we reorder the locking in ptmx_open()
to get tty_mutex before the BTM.
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
