aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/irda
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-06-04 07:35:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-12 18:50:23 -0400
commite673927d8a210ab1db27047080fc1bdb47f7e372 (patch)
treec817dc32bbc54e323909004a098fd29d16ee1ffb /include/net/irda
parent849d5a997fe6a9e44401daed62a98121390ec0d3 (diff)
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>
Diffstat (limited to 'include/net/irda')
-rw-r--r--include/net/irda/ircomm_tty.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/irda/ircomm_tty.h b/include/net/irda/ircomm_tty.h
index e4db3b5f6e4c..a9027d8f670d 100644
--- a/include/net/irda/ircomm_tty.h
+++ b/include/net/irda/ircomm_tty.h
@@ -96,7 +96,6 @@ struct ircomm_tty_cb {
96 struct work_struct tqueue; 96 struct work_struct tqueue;
97 97
98 /* Protect concurent access to : 98 /* Protect concurent access to :
99 * o self->open_count
100 * o self->ctrl_skb 99 * o self->ctrl_skb
101 * o self->tx_skb 100 * o self->tx_skb
102 * Maybe other things may gain to be protected as well... 101 * Maybe other things may gain to be protected as well...