tools/testing/nvdimm: unit test clear-error commands
authorDan Williams <dan.j.williams@intel.com>
Sun, 12 Nov 2017 22:54:23 +0000 (14:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:52:42 +0000 (14:52 +0100)
commite37e383a4e6610b5a78111f88d2a74f2a533f78c
treedfd51af4ab9800152b5485b624f6f29f6f3a2ae9
parent18a83c0133928c5162c607a45fe541687adc03b1
tools/testing/nvdimm: unit test clear-error commands

[ Upstream commit fb2a1748355161e050e9f49f1ea9a0ae707a148b ]

Validate command parsing in acpi_nfit_ctl for the clear error command.
This tests for a crash condition introduced by commit 4b27db7e26cd
"acpi, nfit: add support for the _LSI, _LSR, and _LSW label methods".

Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/nvdimm/test/nfit.c