summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-06-02 10:54:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-03 10:03:34 +0200
commitaa2cd910c7465eaf6de04da1b4d110205ad63c77 (patch)
tree3b469e89caeb4e7e595d524c7609e27b01e93a69 /scripts
parent90f96b39cd851df684ec8d6a0c0d508c2503003f (diff)
downloadbarebox-aa2cd910c7465eaf6de04da1b4d110205ad63c77.tar.gz
barebox-aa2cd910c7465eaf6de04da1b4d110205ad63c77.tar.xz
mtd: nand: base: fix use of uninitialized struct member
ooblen is read in nand_do_read_ops, despite never having been assigned a value. Because ooblen is used to indicate how many bytes of oobbuf are usable and oobbuf is NULL, use 0 as initial value. Found on ARCH=sandbox using clang-analyzer. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions