[Devel] Re: [RFC/PATCH 3/8]: CGroup Files: Move the release_agent file to use typed handlers
Andrew Morton
akpm at linux-foundation.org
Tue May 13 13:08:33 PDT 2008
On Mon, 12 May 2008 23:37:10 -0700
menage at google.com wrote:
> + agentbuf = kmalloc(PATH_MAX, GFP_KERNEL);
> + if (!agentbuf)
> + goto continue_free;
> + strcpy(agentbuf, cgrp->root->release_agent_path);
Did we need to allocate all that memory, or would kstrdup() suffice?
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list