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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:52 +0000 (20:09 +0100)
commit8df25eb903c5786312ba886828afff3544b854e6
treef7778150a0b23cc59850261eb13cab00cafe9d59
parenteabd7d248e2146abe5909eff29806e8b090dc459
nfit: acpi_nfit_ctl(): Check out_obj->type in the right place

commit 43f89877f26671c6309cd87d7364b1a3e66e71cf upstream.

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: 31eca76ba2fc ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/nfit/core.c