Skip to content
Commit 04d37e5a authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Richard Weinberger
Browse files

ubi: wl: Fix uninitialized variable



There is a potential execution path in which variable *err*
is compared against UBI_IO_BITFLIPS without being properly
initialized previously.

Fix this by initializing variable *err* to 0.

Addresses-Coverity-ID: 1477298 "(Uninitialized scalar variable")
Fixes: 663586c0 ("ubi: Expose the bitrot interface")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent a65d10f3
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