Browse Source

encrypted-keys: fix error return code

Fix request_master_key() error return code.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Mimi Zohar 13 years ago
parent
commit
f4a0d5abef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      security/keys/encrypted-keys/encrypted.c

+ 1 - 1
security/keys/encrypted-keys/encrypted.c

@@ -444,7 +444,7 @@ static struct key *request_master_key(struct encrypted_key_payload *epayload,
 		goto out;
 
 	if (IS_ERR(mkey)) {
-		int ret = PTR_ERR(epayload);
+		int ret = PTR_ERR(mkey);
 
 		if (ret == -ENOTSUPP)
 			pr_info("encrypted_key: key %s not supported",