OSDN Git Service

libnvdimm/security: Fix nvdimm_security_state() state request selection
authorDave Jiang <dave.jiang@intel.com>
Tue, 15 Jan 2019 18:26:21 +0000 (11:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Jan 2019 21:54:33 +0000 (13:54 -0800)
commitfaa8bd6e12e6aeea289d8e6ba74777b72a69434c
tree01af682e69c625708d3a42a38fe129a681cf9db0
parentb4fe30e45a660efa8f122070fc7173715d0e1d00
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>
drivers/nvdimm/nd-core.h