]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3db59dd93309710c40aaf1571c607cb0feef3ecb
tree6a224a855aad0e5207abae573456b2d2ec381f7c
parent4bf1924c008dffdc154f82507b4052e49263a6f4
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