Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 506194da authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: serial: cp210x: Fix usage of uninitialized variable



In the function cp210x_get_termios_port, the variable
bits can be used unitialized if the cp210x_get_line_ctl
function call fails.
Fix this by initializing the variable to zero.

Change-Id: Ie520ecd818b782355412304a9bee403448b68c7a
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 63098a4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment