acpi, nfit: check for the correct event code in notifications
commitafac7081d7e16d64067e3f1031a13708a417f43d
authorVishal Verma <vishal.l.verma@intel.com>
Fri, 19 Aug 2016 20:40:58 +0000 (19 14:40 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:40:26 +0000 (22 12:40 +0200)
treeff2a82dc3e95cd956780e3294bff2c711784a826
parent3245ff58f7f62905dae2e15b0dcd17c47f104178
acpi, nfit: check for the correct event code in notifications

commit c09f12186d6b03b798832d95289af76495990192 upstream.

Commit 209851649dc4 "acpi: nfit: Add support for hot-add" added
support for _FIT notifications, but it neglected to verify the
notification event code matches the one in the ACPI spec for
"NFIT Update". Currently there is only one code in the spec, but
once additional codes are added, older kernels (without this fix)
will misbehave by assuming all event notifications are for an
NFIT Update.

Fixes: 209851649dc4 ("acpi: nfit: Add support for hot-add")
Cc: <linux-acpi@vger.kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Reported-by: Linda Knippers <linda.knippers@hpe.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h