acpi/nfit: Block function zero DSMs
authorDan Williams <dan.j.williams@intel.com>
Mon, 14 Jan 2019 22:07:19 +0000 (14:07 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 21 Jan 2019 17:58:29 +0000 (09:58 -0800)
commit5e9e38d0db1d29efed1dd4cf9a70115d33521be7
tree905e79cbf56185bcdace6b30967a3ff55b54882f
parent1cd7386549f9b6f2f230da54aa9e7fe2d6c216d2
acpi/nfit: Block function zero DSMs

In preparation for using function number 0 as an error value, prevent it
from being considered a valid function value by acpi_nfit_ctl().

Cc: <stable@vger.kernel.org>
Cc: stuart hayes <stuart.w.hayes@gmail.com>
Fixes: e02fb7264d8a ("nfit: add Microsoft NVDIMM DSM command set...")
Reported-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c