aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorHugo Villeneuve <[email protected]>2024-01-16 21:29:58 +0000
committerGreg Kroah-Hartman <[email protected]>2024-01-28 03:09:09 +0000
commit0419373333c2f2024966d36261fd82a453281e80 (patch)
tree54cfcc40770a560a4146d7fc970873dce087386b /scripts/generate_rust_target.rs
parentserial: core: Fix atomicity violation in uart_tiocmget (diff)
downloadkernel-0419373333c2f2024966d36261fd82a453281e80.tar.gz
kernel-0419373333c2f2024966d36261fd82a453281e80.zip
serial: max310x: set default value when reading clock ready bit
If regmap_read() returns a non-zero value, the 'val' variable can be left uninitialized. Clear it before calling regmap_read() to make sure we properly detect the clock ready bit. Fixes: 4cf9a888fd3c ("serial: max310x: Check the clock readiness") Cc: [email protected] Signed-off-by: Hugo Villeneuve <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions