]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
UBI: initialize LEB number variable
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:23:27 +0000 (02:23 -0800)
committerJiri Slaby <jslaby@suse.cz>
Mon, 4 May 2015 09:50:08 +0000 (11:50 +0200)
commit066f6610ef5196373fd2422e82e6844f38dbb95f
treed6d0f0b9ce3068d55d51ed68eebf256346fc2dbd
parent8926a8a1855b8edc24780c31b6a734901cb42f43
UBI: initialize LEB number variable

commit f16db8071ce18819fbd705ddcc91c6f392fb61f8 upstream.

In some of the 'out_not_moved' error paths, lnum may be used
uninitialized. Don't ignore the warning; let's fix it.

This uninitialized variable doesn't have much visible effect in the end,
since we just schedule the PEB for erasure, and its LEB number doesn't
really matter (it just gets printed in debug messages). But let's get it
straight anyway.

Coverity CID #113449

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/mtd/ubi/wl.c