From: Nathan Fontenot Date: Wed, 23 Jul 2008 19:10:46 +0000 (+1000) Subject: powerpc/pseries: Remove kmalloc call in handling writes to lparcfg X-Git-Tag: v2.6.27-rc1~222^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c14b4621c7b6fc4611abf1f86cd78cdb1b2b03;p=pandora-kernel.git powerpc/pseries: Remove kmalloc call in handling writes to lparcfg There are only 4 valid name=value pairs for writes to /proc/ppc64/lparcfg. Current code allocates a buffer to copy this information in from the user. Since the longest name=value pair will easily fit into a buffer of 64 characters, simply put the buffer on the stack instead of allocating the buffer. Signed-off-by: Nathan Fotenot Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed