[PATCH] efi/cper: Fix forgotten type check in cper_print_arm_err_info()
From: Takashi Iwai
Date: Tue Oct 20 2026 - 11:40:44 EST
In the previous conversion of CPER type to bitmap in the commit
96b010536ee0 ("efi/cper: align ARM CPER type with UEFI 2.9A/2.10
specs"), one place was forgotten to be replaced, ended up with the
incorrect comparison. Fix it to the bitmap comparison.
Fixes: 96b010536ee0 ("efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs")
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
---
Just spotted by a code review, not really tested
drivers/firmware/efi/cper-arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/cper-arm.c b/drivers/firmware/efi/cper-arm.c
index b21cb1232d82..b620cc9f8b5d 100644
--- a/drivers/firmware/efi/cper-arm.c
+++ b/drivers/firmware/efi/cper-arm.c
@@ -181,7 +181,7 @@ static void cper_print_arm_err_info(const char *pfx, u32 type,
}
/* The rest of the fields are specific to bus errors */
- if (type != CPER_ARM_BUS_ERROR)
+ if (!(type & CPER_ARM_BUS_ERROR))
return;
if (error_info & CPER_ARM_ERR_VALID_PARTICIPATION_TYPE) {
--
2.55.0