diff options
author | Joel Kitching <kitching@google.com> | 2019-11-18 21:13:29 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-03 02:42:56 +0000 |
commit | b50f6f11c436eead6cb07ad821a133881406f804 (patch) | |
tree | 374ad5b2a28c8d1d538e3298fdb5d254ab3ce448 | |
parent | 56b892b1b709da524d664e1e2805170080052e30 (diff) | |
download | vboot-b50f6f11c436eead6cb07ad821a133881406f804.tar.gz |
vboot: add errors for nvdata read/write failures
BUG=b:124141368, chromium:1006689
TEST=make clean && make runtests
BRANCH=none
Change-Id: Ieb47f54f665299b5377077c8975611ba3e1b8dc9
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1921775
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
(cherry picked from commit a93aa4a3cc14ca11f2833f7b803f1442aa8a4d06)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1947712
Reviewed-by: Shelley Chen <shchen@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r-- | firmware/2lib/include/2return_codes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h index 9f6a54cd..e6109485 100644 --- a/firmware/2lib/include/2return_codes.h +++ b/firmware/2lib/include/2return_codes.h @@ -162,6 +162,12 @@ enum vb2_return_code { /* Bad CRC in vb2_nv_check_crc() */ VB2_ERROR_NV_CRC, + /* Read error in nvdata backend */ + VB2_ERROR_NV_READ, + + /* Write error in nvdata backend */ + VB2_ERROR_NV_WRITE, + /********************************************************************** * Secure data storage errors */ |