projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a960f8d
)
sunrpc: replace generic auth_cred hash with auth-specific function
author
Frank Sorenson
<sorenson@redhat.com>
Thu, 29 Sep 2016 15:44:41 +0000
(10:44 -0500)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Fri, 30 Sep 2016 19:47:47 +0000
(15:47 -0400)
Replace the generic code to hash the auth_cred with the call to
the auth-specific hash function in the rpc_authops struct.
Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/auth.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/auth.c
b/net/sunrpc/auth.c
index a7e42f9a405c1c6fde97fc3cc34628a45016b03c..2bff63a73cf8a98aab11e3f6cbb2154988907557 100644
(file)
--- a/
net/sunrpc/auth.c
+++ b/
net/sunrpc/auth.c
@@
-551,7
+551,7
@@
rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
*entry, *new;
unsigned int nr;
- nr =
hash_long(from_kuid(&init_user_ns, acred->uid)
, cache->hashbits);
+ nr =
auth->au_ops->hash_cred(acred
, cache->hashbits);
rcu_read_lock();
hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {