diff options
author | Dave Jiang <dave.jiang@intel.com> | 2019-01-15 19:26:21 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-01-15 22:54:33 +0100 |
commit | faa8bd6e12e6aeea289d8e6ba74777b72a69434c (patch) | |
tree | 01af682e69c625708d3a42a38fe129a681cf9db0 /drivers/nvdimm/nd-core.h | |
parent | acpi/nfit: Remove duplicate set nd_set in acpi_nfit_init_interleave_set() (diff) | |
download | linux-faa8bd6e12e6aeea289d8e6ba74777b72a69434c.tar.xz linux-faa8bd6e12e6aeea289d8e6ba74777b72a69434c.zip |
libnvdimm/security: Fix nvdimm_security_state() state request selection
The input parameter should be enum nvdimm_passphrase_type instead of bool
for selection of master/user for selection of extended master passphrase
state or the regular user passphrase state.
Fixes: 89fa9d8ea7bdf ("...add Intel DSM 1.8 master passphrase support")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd-core.h')
-rw-r--r-- | drivers/nvdimm/nd-core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 2b2cf4e554d3..e5ffd5733540 100644 --- a/drivers/nvdimm/nd-core.h +++ b/drivers/nvdimm/nd-core.h @@ -54,12 +54,12 @@ struct nvdimm { }; static inline enum nvdimm_security_state nvdimm_security_state( - struct nvdimm *nvdimm, bool master) + struct nvdimm *nvdimm, enum nvdimm_passphrase_type ptype) { if (!nvdimm->sec.ops) return -ENXIO; - return nvdimm->sec.ops->state(nvdimm, master); + return nvdimm->sec.ops->state(nvdimm, ptype); } int nvdimm_security_freeze(struct nvdimm *nvdimm); #if IS_ENABLED(CONFIG_NVDIMM_KEYS) |