net/irda: Hold port lock while bumping blocked_open
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 5 Mar 2013 06:09:05 +0000 (06:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2013 07:47:04 +0000 (02:47 -0500)
commit2f7c069b96ed7b1f6236f2fa7b0bc06f4f54f2d9
tree51aef4f367dfd5676e1eefaaf3f0ba6b8425e5d7
parenta4ed2e737cb73e4405a3649f8aef7619b99fecae
net/irda: Hold port lock while bumping blocked_open

Although tty_lock() already protects concurrent update to
blocked_open, that fails to meet the separation-of-concerns between
tty_port and tty.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/ircomm/ircomm_tty.c