aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-07-23 13:14:28 -0400
committerSteve French <smfrench@gmail.com>2012-07-23 16:36:24 -0500
commit00401ff780c58b9dabffef668386c206efc71c7c (patch)
tree99d1ee1a896ec532442470590775ef9d927b8396 /fs/cifs
parent0ec4f431eb56d633da3a55da67d5c4b88886ccc7 (diff)
downloadkernel_goldelico_gta04-00401ff780c58b9dabffef668386c206efc71c7c.zip
kernel_goldelico_gta04-00401ff780c58b9dabffef668386c206efc71c7c.tar.gz
kernel_goldelico_gta04-00401ff780c58b9dabffef668386c206efc71c7c.tar.bz2
cifs: after upcalling for krb5 creds, invalidate key rather than revoking it
Calling key_revoke here isn't ideal as further requests for the key will end up returning -EKEYREVOKED until it gets purged from the cache. What we really intend here is to force a new upcall on the next request_key. Cc: David Howells <dhowells@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/sess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 551d0c2..b421978 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -938,7 +938,7 @@ ssetup_ntlmssp_authenticate:
ssetup_exit:
if (spnego_key) {
- key_revoke(spnego_key);
+ key_invalidate(spnego_key);
key_put(spnego_key);
}
kfree(str_area);