]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commite136e3036bf27569dbfeae245cc09c7167cdc749
tree106be43f343a4fce34076781df05af0d32e2799a
parent33dd474ae712dc435eb586b44cb771cc8d24e2bd
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