The AVB_ORANGE case fell through into AVB_RED due to a missing break.
It happened to be harmless since AVB_RED only breaks, but it trips
-Wimplicit-fallthrough and is fragile against future changes. Add the
missing break.
Fixes: 5d4fd877733 ("avb2.0: add boot states and dm-verity support")
Signed-off-by: Naveen Kumar Chaudhary <[email protected]>
---
common/avb_verify.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/avb_verify.c b/common/avb_verify.c
index b96cd1ebd7b..09f1534c3cc 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -198,6 +198,7 @@ char *avb_set_state(AvbOps *ops, enum avb_boot_state
boot_state)
break;
case AVB_ORANGE:
cmdline = "androidboot.verifiedbootstate=orange";
+ break;
case AVB_RED:
break;
}
--
2.43.0