diff options
| author | Peter Hurley <[email protected]> | 2014-11-05 12:12:48 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-11-05 18:24:10 -0800 |
| commit | 216030ec55e08646be629ee32725c0189ad74c9a (patch) | |
| tree | e8ca124d3b1e01ce592a382572dd962317e3dd61 /tools/perf/scripts/python/netdev-times.py | |
| parent | 5d93e748957336de1f28e7356bb43d6da01718bc (diff) | |
tty: Check tty->count instead of TTY_CLOSING in tty_reopen()
Although perhaps not obvious, the TTY_CLOSING bit is set when the
tty count has been decremented to 0 (which occurs while holding
tty_lock). The only other case when tty count is 0 during a re-open
is when a legacy BSD pty master has been opened in parallel but
after the pty slave, which is unsupported and returns an error.
Thus !tty->count contains the complete set of degenerate conditions
under which a tty open fails.
Reviewed-by: Alan Cox <[email protected]>
Signed-off-by: Peter Hurley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions