From: Stephen Smalley This patch changes the SELinux file_alloc_security function to use GFP_KERNEL rather than GFP_ATOMIC; the use of GFP_ATOMIC appears to be a remnant of when this function was being called with the files_lock spinlock held, and is no longer necessary. Please apply. Signed-off-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton --- security/selinux/hooks.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN security/selinux/hooks.c~selinux-change-file_alloc_security-to-use-gfp_kernel security/selinux/hooks.c --- 25/security/selinux/hooks.c~selinux-change-file_alloc_security-to-use-gfp_kernel Thu Jan 19 14:35:38 2006 +++ 25-akpm/security/selinux/hooks.c Thu Jan 19 14:35:38 2006 @@ -192,7 +192,7 @@ static int file_alloc_security(struct fi struct task_security_struct *tsec = current->security; struct file_security_struct *fsec; - fsec = kzalloc(sizeof(struct file_security_struct), GFP_ATOMIC); + fsec = kzalloc(sizeof(struct file_security_struct), GFP_KERNEL); if (!fsec) return -ENOMEM; _