]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: ircomm, revamp locking
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:20 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 22:50:23 +0000 (15:50 -0700)
commite673927d8a210ab1db27047080fc1bdb47f7e372
treec817dc32bbc54e323909004a098fd29d16ee1ffb
parent849d5a997fe6a9e44401daed62a98121390ec0d3
TTY: ircomm, revamp locking

Use self->spinlock only for ctrl_skb and tx_skb. TTY stuff is now
protected by tty_port->lock. This is needed for further cleanup (and
conversion to tty_port helpers).

This also closes the race in the end of close.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/irda/ircomm_tty.h
net/irda/ircomm/ircomm_tty.c