diff options
author | Dave Jiang <dave.jiang@intel.com> | 2019-01-15 11:26:21 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-01-15 13:54:33 -0800 |
commit | faa8bd6e12e6aeea289d8e6ba74777b72a69434c (patch) | |
tree | 01af682e69c625708d3a42a38fe129a681cf9db0 | |
parent | b4fe30e45a660efa8f122070fc7173715d0e1d00 (diff) | |
download | linux-faa8bd6e12e6aeea289d8e6ba74777b72a69434c.tar.gz linux-faa8bd6e12e6aeea289d8e6ba74777b72a69434c.tar.bz2 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>
-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) |