]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5de742c6208aec3f747fc1bbb76ffea7fe85d466
tree6a224a855aad0e5207abae573456b2d2ec381f7c
parentcd197eb4e172e5c470d7e55340ba89677d362d47
ima: fix cred sparse warning

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>
security/integrity/ima/ima_policy.c