diff options
author | Jiri Slaby <[email protected]> | 2019-11-22 11:17:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-11-22 11:38:38 +0100 |
commit | 2ae0b31e0faced43c011ce3221f2535721cb6a66 (patch) | |
tree | b6431e759d83ae24f77130c75cfe27f8844f2bed /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 1250ed7114a977cdc2a67a0c09d6cdda63970eb9 (diff) |
tty: don't crash in tty_init_dev when missing tty_port
We currently warn the user when tty->port is not set in tty_init_dev
yet. The warning says that the kernel will crash later. And it really
will only few lines below at:
tty->port->itty = tty;
So be nice and avoid the crash -- return an error instead. And update
the warning.
Signed-off-by: Jiri Slaby <[email protected]>
Cc: Sudip Mukherjee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions