summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorNikolai Artemiev <nartemiev@google.com>2022-01-11 18:26:48 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-01-14 07:31:50 +0000
commit89c73b5a746088fb303f2f69c7107b9e2d386a79 (patch)
treef6b9731194435f1c917c9c829da9edae59eacb95 /chipdrivers.h
parentf31bb81de166a408b562296dc7f772421ecd4e2d (diff)
downloadflashrom-89c73b5a746088fb303f2f69c7107b9e2d386a79.tar.gz
flashrom-89c73b5a746088fb303f2f69c7107b9e2d386a79.tar.bz2
flashrom-89c73b5a746088fb303f2f69c7107b9e2d386a79.zip
linux_mtd: check ioctl() return value properly
Make the linux_mtd driver treat any negative return value from the MEMERASE ioctl as an error. Previously it only treated -1 as an error. BUG=b:213561594,b:210973586,b:182223106 BRANCH=none TEST=builds Change-Id: I40cfbdee2ab608fbe6c17d9cac6ec53ff224d9a4 Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/60996 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'chipdrivers.h')
0 files changed, 0 insertions, 0 deletions