]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commite408797b1a2addc4a1899bcdcda705978b696e6d
tree95734d51642a3dd7ccbc1040f9cf7d0121e6b857
parent6a6e126259a378d9b13283e54835658d8c68a5a0
nfit: acpi_nfit_ctl(): Check out_obj->type in the right place

BugLink: https://bugs.launchpad.net/bugs/1837952
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/nfit/core.c