diff options
author | Okash Khawaja <okash.khawaja@gmail.com> | 2017-07-16 10:28:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-18 09:03:21 +0200 |
commit | 216ce2962089b6218708bf87d96e6b1fbadba1d7 (patch) | |
tree | 75cc79d83508d76062902a0bb3b68c03c32c9327 /scripts/gcc-plugins/gcc-generate-gimple-pass.h | |
parent | 740c433ec35187b45abe08bb6c45a321a791be8e (diff) |
staging: speakup: safely close tty
Speakup opens tty using tty_open_by_driver. When closing, it calls
tty_ldisc_release but doesn't close and remove the tty itself. As a
result, that tty cannot be opened from user space. This patch calls
tty_release_struct which ensures that tty is safely removed and freed
up. It also calls tty_ldisc_release, so speakup doesn't need to call it.
Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
0 files changed, 0 insertions, 0 deletions