Skip to content

Commit 2e21807

Browse files
stellarhopperdjbw
authored andcommitted
nfit, mce: Fix SPA matching logic in MCE handler
The check for a 'pmem' type SPA in the MCE handler was inverted due to a merge/rebase error. Fixes: 6839a6d nfit: do an ARS scrub on hitting a latent media error Cc: [email protected] Cc: Dan Williams <[email protected]> Signed-off-by: Vishal Verma <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 9049771 commit 2e21807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/nfit/mce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static int nfit_handle_mce(struct notifier_block *nb, unsigned long val,
4242
list_for_each_entry(nfit_spa, &acpi_desc->spas, list) {
4343
struct acpi_nfit_system_address *spa = nfit_spa->spa;
4444

45-
if (nfit_spa_type(spa) == NFIT_SPA_PM)
45+
if (nfit_spa_type(spa) != NFIT_SPA_PM)
4646
continue;
4747
/* find the spa that covers the mce addr */
4848
if (spa->address > mce->addr)

0 commit comments

Comments
 (0)