acpi, nfit: validate ars_status output buffer size
authorDan Williams <dan.j.williams@intel.com>
Tue, 6 Dec 2016 20:45:24 +0000 (12:45 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 7 Dec 2016 00:30:37 +0000 (16:30 -0800)
commit82aa37cf09867c5e2c0326649d570e5b25c1189a
tree3da4c93548233667ba727b444ca4ab11ed4b47c4
parentefda1b5d87cbc3d8816f94a3815b413f1868e10d
acpi, nfit: validate ars_status output buffer size

If an ARS Status command returns truncated output, do not process
partial records or otherwise consume non-status fields.

Cc: <stable@vger.kernel.org>
Fixes: 0caeef63e6d2 ("libnvdimm: Add a poison list and export badblocks")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c