commit | a4ed2e737cb73e4405a3649f8aef7619b99fecae | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Tue Mar 05 06:09:04 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 06 02:47:04 2013 -0500 |
tree | 6cc188dc7dd206790023fb360af4b1a886611855 | |
parent | 0305d0689efd35b4c9f88bb560c104ed118d2277 [diff] |
net/irda: Fix port open counts Saving the port count bump is unsafe. If the tty is hung up while this open was blocking, the port count is zeroed. Explicitly check if the tty was hung up while blocking, and correct the port count if not. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: David S. Miller <davem@davemloft.net>