]> git.baikalelectronics.ru Git - kernel.git/commit
nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
authorDexuan Cui <decui@microsoft.com>
Wed, 30 Jan 2019 01:23:01 +0000 (01:23 +0000)
committerDan Williams <dan.j.williams@intel.com>
Wed, 30 Jan 2019 06:08:34 +0000 (22:08 -0800)
commitd638b841cf2bab3f35517d4263a5f8bdde4e6df8
treee842a79843a072606ef3846da0f252fb6ab973d2
parent2b4d953c3a30c475666df3413af54f0ac9526a85
nfit: acpi_nfit_ctl(): Check out_obj->type in the right place

In the case of ND_CMD_CALL, we should also check out_obj->type.

The patch uses out_obj->type, which is a short alias to
out_obj->package.type.

Fixes: 1eee6362b3a6 ("nfit, libnvdimm: limited/whitelisted dimm command marshaling mechanism")
Cc: <stable@vger.kernel.org>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c