vboot: Add VB2_ERROR_UI_MEMORY_ALLOC to vb2_error_t

Add VB2_ERROR_UI_MEMORY_ALLOC for memory allocation failure in UI.

BRANCH=none
BUG=b:146399181
TEST=emerge-nami vboot_reference

Change-Id: Ib6d8ccbfe73f90297f400430b4ae1204adbf7ee4
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2152331
Reviewed-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 89b2fcf..c03ba7a 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -766,6 +766,9 @@
 	/* Requested locale not available */
 	VB2_ERROR_UI_INVALID_LOCALE = 0x100c0006,
 
+	/* Memory allocation failure */
+	VB2_ERROR_UI_MEMORY_ALLOC = 0x100c0007,
+
 	/**********************************************************************
 	 * Errors generated by host library (non-firmware) start here.
 	 */