efi/cper: Fix forgotten type check in cper_print_arm_err_info()
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")
Signed-off-by Takashi Iwai <[email protected]>
---
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
@@ -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