aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/fixdep.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2011-08-07 17:55:11 +0000
committerLinus Torvalds <[email protected]>2011-08-07 20:42:35 +0000
commit3295514841c2112d94451ba5deaf54f5afb78ea9 (patch)
tree6df351cb1febbcd011d24fcf99d1b08167c68d5e /scripts/basic/fixdep.c
parentvfs: rename 'do_follow_link' to 'should_follow_link' (diff)
downloadkernel-3295514841c2112d94451ba5deaf54f5afb78ea9.tar.gz
kernel-3295514841c2112d94451ba5deaf54f5afb78ea9.zip
fix rcu annotations noise in cred.h
task->cred is declared as __rcu, and access to other tasks' ->cred is, indeed, protected. Access to current->cred does not need rcu_dereference() at all, since only the task itself can change its ->cred. sparse, of course, has no way of knowing that... Add force-cast in current_cred(), make current_fsuid() et.al. use it. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions