diff options
| author | Dmitry Safonov <[email protected]> | 2018-09-17 23:52:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-18 13:42:24 +0000 |
| commit | fe32416790093b31364c08395727de17ec96ace1 (patch) | |
| tree | 760bb7b980b486ab93baca770b23de6df8818500 /tools/testing/radix-tree/xarray.c | |
| parent | serial: cpm_uart: return immediately from console poll (diff) | |
| download | kernel-fe32416790093b31364c08395727de17ec96ace1.tar.gz kernel-fe32416790093b31364c08395727de17ec96ace1.zip | |
tty: Drop tty->count on tty_reopen() failure
In case of tty_ldisc_reinit() failure, tty->count should be decremented
back, otherwise we will never release_tty().
Tetsuo reported that it fixes noisy warnings on tty release like:
pts pts4033: tty_release: tty->count(10529) != (#fd's(7) + #kopen's(0))
Fixes: commit 892d1fa7eaae ("tty: Destroy ldisc instance on hangup")
Cc: [email protected] # v4.6+
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jiri Slaby <[email protected]>
Reviewed-by: Jiri Slaby <[email protected]>
Tested-by: Jiri Slaby <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Tested-by: Tetsuo Handa <[email protected]>
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions
