Skip to contentSkip to conversation

efi/cper: Fix forgotten type check in cper_print_arm_err_info()

PATCH New Takashi Iwai 1 participant 1 message Oct 20

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi/cper: Fix forgotten type check in cper_print_arm_err_info()

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")

---

Just spotted by a code review, not really tested

 drivers/firmware/efi/cper-arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/cper-arm.c +1 -1
index b21cb1232d82..b620cc9f8b5d 100644
@@ -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) {
Signature · 1 line
2.55.0