mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
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: 663586c0a8 ("ubi: Expose the bitrot interface")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>