git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50d7773
)
SUNRPC: remove all refcounting of groupinfo from rpcauth_lookupcred
author
NeilBrown
<neilb@suse.de>
Mon, 4 Aug 2014 06:24:00 +0000
(16:24 +1000)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Mon, 4 Aug 2014 13:22:08 +0000
(09:22 -0400)
current_cred() can only be changed by 'current', and
cred->group_info is never changed. If a new group_info is
needed, a new 'cred' is created.
Consequently it is always safe to access
current_cred()->group_info
without taking any further references.
So drop the refcounting and the incorrect rcu_dereference().
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/auth.c
patch
|
blob
|
history
diff --cc
net/sunrpc/auth.c
Simple merge