ima: fix cred sparse warning
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 18 Jan 2012 03:11:28 +0000 (22:11 -0500)
committerJames Morris <jmorris@namei.org>
Thu, 19 Jan 2012 04:59:11 +0000 (15:59 +1100)
Fix ima_policy.c sparse "warning: dereference of noderef expression"
message, by accessing cred->uid using current_cred().

Changelog v1:
- Change __cred to just cred (based on David Howell's comment)

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found