diff options
author | Jiri Slaby <[email protected]> | 2012-05-05 22:49:10 +0200 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-05-05 16:21:21 -0700 |
commit | 49a5f3cf6a956360bb43e5f8d0c592a8daea8ebd (patch) | |
tree | 195c877875e18f5ab4280f4227104f958bfa5251 /tools/perf/scripts/python/netdev-times.py | |
parent | 1c2f95480648ed7326ab2288ca0e2d35551db4be (diff) |
TTY: pdc_cons, fix regression in close
The test in pdc_console_tty_close '!tty->count' was always wrong
because tty->count is decremented after tty->ops->close is called and
thus can never be zero. Hence the 'then' branch was never executed and
the timer never deleted.
This did not matter until commit 5dd5bc40f3b6 ("TTY: pdc_cons, use
tty_port"). There we needed to set TTY in tty_port to NULL, but this
never happened due to the bug above.
So change the test to really trigger at the last close by changing the
condition to 'tty->count == 1'.
Well, the driver should not touch tty->count at all. It should use
tty_port->count and count open count there itself.
Signed-off-by: Jiri Slaby <[email protected]>
Reported-and-tested-by: Mikulas Patocka <[email protected]>
Cc: Kyle McMartin <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions