CRED: Restore const to current_cred()
authorDavid Howells <dhowells@redhat.com>
Mon, 8 Aug 2011 14:54:53 +0000 (15:54 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Aug 2011 16:03:16 +0000 (09:03 -0700)
Commit 3295514841c2 ("fix rcu annotations noise in cred.h") accidentally
dropped the const of current->cred inside current_cred() by the
insertion of a cast to deal with an RCU annotation loss warning from
sparce.

Use an appropriate RCU wrapper instead so as not to lose the const.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found