]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/ptrace: Fix brk.len used uninitialised
authorMichael Neuling <mikey@neuling.org>
Mon, 11 Mar 2013 16:42:49 +0000 (16:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 17 Mar 2013 01:35:06 +0000 (12:35 +1100)
commit2bb78efab42cf4ee7a7184f7d2da1b7cb331b479
treed9304b9d04ae8db7379fa5c84466fac24cae1917
parent1674400aaee5b466c595a8fc310488263ce888c7
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 <mikey@neuling.org>
Reported-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ptrace.c