]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selinux: return -ENOMEM when memory allocation fails
authorDavidlohr Bueso <dave@gnu.org>
Fri, 21 Jan 2011 15:28:04 +0000 (12:28 -0300)
committerJames Morris <jmorris@namei.org>
Mon, 24 Jan 2011 00:35:47 +0000 (11:35 +1100)
commit3ac285ff23cd6e1bc402b6db836521bce006eb89
tree449a7788ba52f3ac0cb7a5ae6a467934163745c2
parente5cce6c13c25d9ac56955a3ae2fd562719848172
selinux: return -ENOMEM when memory allocation fails

Return -ENOMEM when memory allocation fails in cond_init_bool_indexes,
correctly propagating error code to caller.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/conditional.c
security/selinux/ss/policydb.c