commit | d34864bf82b472370d0d1e5d12da7942c5dc2fe4 | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Sat Jan 14 23:47:19 2023 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sun May 14 15:20:17 2023 +0000 |
tree | c6bc8865ad7d9ef9df20ef8ff62e42959df4d999 | |
parent | 632131590aa13544515f84822f94eb8f54d78e38 [diff] |
flashrom.c: Sort initial error checks in create_erase_layout() With the original order, we might report the wrong error in case calloc() returns `NULL` for `nmemb == 0`. Change-Id: If1330ab1cbde817fb7ef91f7dc6ace219cb6ecbc Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72555 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>