Commit eeeabba0 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

TTY: serial/ifx6x60, initialize more

In ifx_spi_complete, 'more' is not initialized. It is set only if the
status is clear and only if the header is parsed OK. If any of those
is not true, 'more' can be used uninitialized in that function later.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 91e74ca5
...@@ -651,7 +651,7 @@ static void ifx_spi_complete(void *ctx) ...@@ -651,7 +651,7 @@ static void ifx_spi_complete(void *ctx)
struct ifx_spi_device *ifx_dev = ctx; struct ifx_spi_device *ifx_dev = ctx;
int length; int length;
int actual_length; int actual_length;
unsigned char more; unsigned char more = 0;
unsigned char cts; unsigned char cts;
int local_write_pending = 0; int local_write_pending = 0;
int queue_length; int queue_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment