From: Michael Neuling Date: Mon, 11 Mar 2013 16:42:49 +0000 (+0000) Subject: powerpc/ptrace: Fix brk.len used uninitialised X-Git-Tag: v3.9-rc4~35^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb78efab42cf4ee7a7184f7d2da1b7cb331b479;p=pandora-kernel.git powerpc/ptrace: Fix brk.len used uninitialised With some CONFIGS it's possible that in ppc_set_hwdebug, brk.len is uninitialised before being used. It has been reported that GCC 4.2 will produce the following error in this case: arch/powerpc/kernel/ptrace.c:1479: warning: 'brk.len' is used uninitialized in this function arch/powerpc/kernel/ptrace.c:1381: note: 'brk.len' was declared here This patch corrects this. Signed-off-by: Michael Neuling Reported-by: Philippe De Muyter Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed