aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/nfit/core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index c1fb06654749..ed05697a2b38 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -1867,6 +1867,13 @@ static int acpi_nfit_add_dimm(struct acpi_nfit_desc *acpi_desc,
1867 return 0; 1867 return 0;
1868 } 1868 }
1869 1869
1870 /*
1871 * Function 0 is the command interrogation function, don't
1872 * export it to potential userspace use, and enable it to be
1873 * used as an error value in acpi_nfit_ctl().
1874 */
1875 dsm_mask &= ~1UL;
1876
1870 guid = to_nfit_uuid(nfit_mem->family); 1877 guid = to_nfit_uuid(nfit_mem->family);
1871 for_each_set_bit(i, &dsm_mask, BITS_PER_LONG) 1878 for_each_set_bit(i, &dsm_mask, BITS_PER_LONG)
1872 if (acpi_check_dsm(adev_dimm->handle, guid, 1879 if (acpi_check_dsm(adev_dimm->handle, guid,