mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
91e74ca5e7
commit
eeeabba024
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ static void ifx_spi_complete(void *ctx)
|
|||
struct ifx_spi_device *ifx_dev = ctx;
|
||||
int length;
|
||||
int actual_length;
|
||||
unsigned char more;
|
||||
unsigned char more = 0;
|
||||
unsigned char cts;
|
||||
int local_write_pending = 0;
|
||||
int queue_length;
|
||||
|
|
Loading…
Reference in a new issue