]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
acpi, nfit: check for the correct event code in notifications
authorVishal Verma <vishal.l.verma@intel.com>
Fri, 19 Aug 2016 20:40:58 +0000 (14:40 -0600)
committerDan Williams <dan.j.williams@intel.com>
Tue, 23 Aug 2016 14:49:08 +0000 (07:49 -0700)
commitc09f12186d6b03b798832d95289af76495990192
treee13e47bd7190438874b9a470a099f6d396ebeb23
parent02486c2905a7caa50b0f508a86e03d12d8d24ac4
acpi, nfit: check for the correct event code in notifications

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: <stable@vger.kernel.org>
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>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h