lkml.org 
[lkml]   [2008]   [May]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 13 May 2008 13:08:33 -0700
FromAndrew Morton <>
SubjectRe: [RFC/PATCH 3/8]: CGroup Files: Move the release_agent file to use typed handlers
On Mon, 12 May 2008 23:37:10 -0700
menage@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?


\
 
 \ /
  Last update: 2008-05-13 22:11    [from the cache]
©2003-2008