Commit 953756e2fb02880d6d6b7d961540a064c6df9f97

Authored by Jiri Slaby
Committed by Greg Kroah-Hartman
1 parent 37f00f62af

TTY: crisv10, initialize tty_port

The tty_port used in the driver is left uninitialized. Add the
initialization there.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Mikael Starvik <starvik@axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: linux-cris-kernel@axis.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/tty/serial/crisv10.c
... ... @@ -4462,6 +4462,7 @@
4462 4462 info->enabled = 0;
4463 4463 }
4464 4464 }
  4465 + tty_port_init(&info->port);
4465 4466 info->uses_dma_in = 0;
4466 4467 info->uses_dma_out = 0;
4467 4468 info->line = i;