aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/lsi/mpi_init.h
diff options
context:
space:
mode:
authorSergio Luis <[email protected]>2008-12-22 04:16:15 +0000
committerJames Morris <[email protected]>2008-12-25 01:14:55 +0000
commit81ea714bf148fce35e931edcbdfd3aedda20d1dc (patch)
treee3cabfd2ce35bc8be542910bffc4b9b99288a7f4 /drivers/message/fusion/lsi/mpi_init.h
parentSELinux: don't check permissions for kernel mounts (diff)
downloadkernel-81ea714bf148fce35e931edcbdfd3aedda20d1dc.tar.gz
kernel-81ea714bf148fce35e931edcbdfd3aedda20d1dc.zip
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 <[email protected]> To: Casey Schaufler <[email protected]> Cc: Ahmed S. Darwish <[email protected]> Cc: LSM <[email protected]> Cc: LKLM <[email protected]> Acked-by: Casey Schaufler <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_init.h')
0 files changed, 0 insertions, 0 deletions