[PATCH] selinux: change file_alloc_security to use GFP_KERNEL
[linux-2.6.git] / security / selinux / hooks.c
index 1bb5eea3b8c1262b617e9574e87b3f8710516122..5e61635610bb08fab4df05108b3a8bd9c6b53e0b 100644 (file)
@@ -192,7 +192,7 @@ static int file_alloc_security(struct file *file)
        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;