]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tty: Fix close races in USB serial
authorAlan Cox <alan@redhat.com>
Fri, 2 Jan 2009 13:44:04 +0000 (13:44 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:37 +0000 (10:19 -0800)
commit4bd43f2c31848d751f63e8753cd2788d48fb5f30
treef88e890bbee89421271437761024130e0c831853
parent7e94b1d9bffc18dca3b45554d9d118a3ffcc4d1b
tty: Fix close races in USB serial

USB serial has always had races where the tty port usage count can hit zero
during a receive event. The internal locking is a mutex so we can't use
that in the IRQ handlers.

With krefs we can tackle this differently but we still need to be careful.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/usb-serial.c