diff options
| author | Oscar Carter <[email protected]> | 2020-05-10 10:14:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-05-13 12:00:21 +0000 |
| commit | 34625c1931f8204c234c532b446b9f53c69f4b68 (patch) | |
| tree | aec98fcca4261c24d9269df40a3d87bf63a24937 /tools/perf/scripts/python/stat-cpi.py | |
| parent | staging: kpc2000: fix error return code in kp2000_pcie_probe() (diff) | |
| download | kernel-34625c1931f8204c234c532b446b9f53c69f4b68.tar.gz kernel-34625c1931f8204c234c532b446b9f53c69f4b68.zip | |
staging: greybus: Fix uninitialized scalar variable
In the "gb_tty_set_termios" function the "newline" variable is declared
but not initialized. So the "flow_control" member is not initialized and
the OR / AND operations with itself results in an undefined value in
this member.
The purpose of the code is to set the flow control type, so remove the
OR / AND self operator and set the value directly.
Addresses-Coverity-ID: 1374016 ("Uninitialized scalar variable")
Fixes: e55c25206d5c9 ("greybus: uart: Handle CRTSCTS flag in termios")
Signed-off-by: Oscar Carter <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
