]> git.baikalelectronics.ru Git - kernel.git/commit
hso: net driver using tty without locking
authorAlan Cox <alan@redhat.com>
Fri, 2 Jan 2009 13:47:39 +0000 (13:47 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:41 +0000 (10:19 -0800)
commit90a42369dd3a722c1f18eb030152ecabaa49ee88
tree106be43f343a4fce34076781df05af0d32e2799a
parentb5ba76c958b7763c7166ef58f125cac6415c510e
hso: net driver using tty without locking

Checking tty == NULL doesn't help us unless we have a clear semantic for
the locking of the tty object in the driver. Use the tty kref objects so that
we can take references to the tty in the USB event handling paths.

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