diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-07-23 19:14:28 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-23 23:36:24 +0200 |
commit | 00401ff780c58b9dabffef668386c206efc71c7c (patch) | |
tree | 99d1ee1a896ec532442470590775ef9d927b8396 /fs/cifs/sess.c | |
parent | locks: fix checking of fcntl_setlease argument (diff) | |
download | linux-00401ff780c58b9dabffef668386c206efc71c7c.tar.xz linux-00401ff780c58b9dabffef668386c206efc71c7c.zip |
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/sess.c')
-rw-r--r-- | fs/cifs/sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 551d0c2b9736..b4219789049a 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); |