alloc_creds (kernel/cred.c) takes a gfp arg, but ignores it and hardcodes
GFP_KERNEL.
Erez.
/*
* Allocate new credentials
*/
struct cred *alloc_creds(const struct cred *old, gfp_t gfp)
{
struct cred *new;
new = kmem_cache_alloc(cred_jar, GFP_KERNEL);
if (!new)
return NULL;
if (old)
memcpy(new, old, sizeof(struct cred));
return new;
}
--