summaryrefslogtreecommitdiff
path: root/common/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/flash.c')
-rw-r--r--common/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/flash.c b/common/flash.c
index 00d13d2693..4b3a5fae69 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -64,6 +64,8 @@ struct persist_state {
BUILD_ASSERT(sizeof(struct persist_state) % CONFIG_FLASH_WRITE_SIZE == 0);
#endif
+BUILD_ASSERT(sizeof(struct persist_state) <= CONFIG_FW_PSTATE_SIZE);
+
#else /* !CONFIG_FLASH_PSTATE_BANK */
/*