]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/crypto/keyinfo.c
KEYS: Differentiate uses of rcu_dereference_key() and user_key_payload()
[linux.git] / fs / crypto / keyinfo.c
index 02eb6b9e44387d90daf6a35c03a052e7b855715d..d5d896fa5a71675272131d797919924b2398a85a 100644 (file)
@@ -103,7 +103,7 @@ static int validate_user_key(struct fscrypt_info *crypt_info,
                goto out;
        }
        down_read(&keyring_key->sem);
-       ukp = user_key_payload(keyring_key);
+       ukp = user_key_payload_locked(keyring_key);
        if (ukp->datalen != sizeof(struct fscrypt_key)) {
                res = -EINVAL;
                up_read(&keyring_key->sem);