Re: [RFC/PATCH 3/8]: CGroup Files: Move the release_agent file touse typed handlers

From: Andrew Morton
Date: Tue May 13 2008 - 16:09:27 EST


On Mon, 12 May 2008 23:37:10 -0700
menage@xxxxxxxxxx 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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/