diff options
author | Fabien Dessenne <fabien.dessenne@st.com> | 2019-03-21 16:43:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-28 01:21:21 +0900 |
commit | f4e68d58cf2b20a581759bbc7228052534652673 (patch) | |
tree | 04a5dc64b3a11f9f1a5c594e3725e627b6513713 /kernel/stackleak.c | |
parent | 3ec8002951ea173e24b466df1ea98c56b7920e63 (diff) | |
download | linux-f4e68d58cf2b20a581759bbc7228052534652673.tar.bz2 |
tty: fix NULL pointer issue when tty_port ops is not set
Unlike 'client_ops' which is initialized to 'default_client_ops', the
port operations 'ops' may be left to NULL.
Check the 'ops' value before checking the 'ops->x' value.
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/stackleak.c')
0 files changed, 0 insertions, 0 deletions