aboutsummaryrefslogtreecommitdiffstats
path: root/lib/div64.c
diff options
context:
space:
mode:
authorSergio Luis <sergio@larces.uece.br>2008-12-22 01:16:15 -0300
committerJames Morris <jmorris@namei.org>2008-12-25 12:14:55 +1100
commit81ea714bf148fce35e931edcbdfd3aedda20d1dc (patch)
treee3cabfd2ce35bc8be542910bffc4b9b99288a7f4 /lib/div64.c
parent74192246910ff4fb95309ba1a683215644beeb62 (diff)
downloadkernel_samsung_crespo-81ea714bf148fce35e931edcbdfd3aedda20d1dc.zip
kernel_samsung_crespo-81ea714bf148fce35e931edcbdfd3aedda20d1dc.tar.gz
kernel_samsung_crespo-81ea714bf148fce35e931edcbdfd3aedda20d1dc.tar.bz2
smackfs: check for allocation failures in smk_set_access()
smackfs: check for allocation failures in smk_set_access() While adding a new subject/object pair to smack_list, smk_set_access() didn't check the return of kzalloc(). This patch changes smk_set_access() to return 0 or -ENOMEM, based on kzalloc()'s return. It also updates its caller, smk_write_load(), to check for smk_set_access()'s return, given it is no longer a void return function. Signed-off-by: Sergio Luis <sergio@larces.uece.br> To: Casey Schaufler <casey@schaufler-ca.com> Cc: Ahmed S. Darwish <darwish.07@gmail.com> Cc: LSM <linux-security-module@vger.kernel.org> Cc: LKLM <linux-kernel@vger.kernel.org> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'lib/div64.c')
0 files changed, 0 insertions, 0 deletions