All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] avb: fix missing break in avb_set_state() switch
@ 2026-09-01 10:19 Naveen Kumar Chaudhary
  2026-09-01 13:41 ` Simon Glass
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Naveen Kumar Chaudhary @ 2026-09-01 10:19 UTC (permalink / raw)
  To: mkorpershoek, igor.opaniuk, trini; +Cc: u-boot

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 <naveen.osdev@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-09  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 10:19 [PATCH] avb: fix missing break in avb_set_state() switch Naveen Kumar Chaudhary
2026-09-01 13:41 ` Simon Glass
2026-09-02 12:39 ` Mattijs Korpershoek
2026-09-09  9:05 ` Mattijs Korpershoek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.