X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=kernel%2Fcred.c;h=809a985b17934ae7e01a63621c5ca49ce03577ad;hb=e033e7d4a8081852b2cca53e530e2c0f4e6769c0;hp=56395be1c2a81774b79700c1ccb3bcd948d75fb8;hpb=f52b83b0b1c40ada38df917973ab719a4a753951;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/kernel/cred.c b/kernel/cred.c index 56395be..809a985 100644 --- a/kernel/cred.c +++ b/kernel/cred.c @@ -223,7 +223,7 @@ struct cred *cred_alloc_blank(void) new->magic = CRED_MAGIC; #endif - if (security_cred_alloc_blank(new, GFP_KERNEL) < 0) + if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) goto error; return new; @@ -282,7 +282,7 @@ struct cred *prepare_creds(void) new->security = NULL; #endif - if (security_prepare_creds(new, old, GFP_KERNEL) < 0) + if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) goto error; validate_creds(new); return new; @@ -715,7 +715,7 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon) #ifdef CONFIG_SECURITY new->security = NULL; #endif - if (security_prepare_creds(new, old, GFP_KERNEL) < 0) + if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) goto error; put_cred(old);