diff --git a/drivers/nvdimm/security.c b/drivers/nvdimm/security.c index 89b85970912dbe076ae37cbc2ce56bce570f0457..4cef69bd3c1bd8638c8181ca632d158712a091c0 100644 --- a/drivers/nvdimm/security.c +++ b/drivers/nvdimm/security.c @@ -95,7 +95,7 @@ static struct key *nvdimm_lookup_user_key(struct nvdimm *nvdimm, struct encrypted_key_payload *epayload; struct device *dev = &nvdimm->dev; - keyref = lookup_user_key(id, 0, 0); + keyref = lookup_user_key(id, 0, KEY_NEED_SEARCH); if (IS_ERR(keyref)) return NULL;