From: Will Deacon Date: Fri, 22 Aug 2014 13:13:24 +0000 (+0100) Subject: arm64: ptrace: fix compat hardware watchpoint reporting X-Git-Tag: fixes-v3.17-rc4~33^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d7ff273c2aad37b28f6ff0cab2cfa35b51e648;p=pandora-kernel.git arm64: ptrace: fix compat hardware watchpoint reporting I'm not sure what I was on when I wrote this, but when iterating over the hardware watchpoint array (hbp_watch_array), our index is off by ARM_MAX_BRP, so we walk off the end of our thread_struct... ... except, a dodgy condition in the loop means that it never executes at all (bp cannot be NULL). This patch fixes the code so that we remove the bp check and use the correct index for accessing the watchpoint structures. Cc: Signed-off-by: Will Deacon --- Reading git-diff-tree failed