mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
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: linux-acpi@vger.kernel.org
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
9049771f7d
commit
2e21807d4b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ static int nfit_handle_mce(struct notifier_block *nb, unsigned long val,
|
||||||
list_for_each_entry(nfit_spa, &acpi_desc->spas, list) {
|
list_for_each_entry(nfit_spa, &acpi_desc->spas, list) {
|
||||||
struct acpi_nfit_system_address *spa = nfit_spa->spa;
|
struct acpi_nfit_system_address *spa = nfit_spa->spa;
|
||||||
|
|
||||||
if (nfit_spa_type(spa) == NFIT_SPA_PM)
|
if (nfit_spa_type(spa) != NFIT_SPA_PM)
|
||||||
continue;
|
continue;
|
||||||
/* find the spa that covers the mce addr */
|
/* find the spa that covers the mce addr */
|
||||||
if (spa->address > mce->addr)
|
if (spa->address > mce->addr)
|
||||||
|
|
Loading…
Reference in a new issue