]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/connect.c
KEYS: Differentiate uses of rcu_dereference_key() and user_key_payload()
[linux.git] / fs / cifs / connect.c
index 777ad9f4fc3c84acbb5d96878939c589341b7f86..8a3ecef30d3ce5b8e4b3a325ea147b457749a616 100644 (file)
@@ -2455,7 +2455,7 @@ cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
        }
 
        down_read(&key->sem);
-       upayload = user_key_payload(key);
+       upayload = user_key_payload_locked(key);
        if (IS_ERR_OR_NULL(upayload)) {
                rc = upayload ? PTR_ERR(upayload) : -EINVAL;
                goto out_key_put;