From: Michael Neuling Date: Mon, 1 Jul 2013 04:19:50 +0000 (+1000) Subject: powerpc/hw_brk: Fix off by one error when validating DAWR region end X-Git-Tag: v3.11-rc1~94^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a800beaca1f580945773e57d1a0e7cd37b1056;p=pandora-kernel.git powerpc/hw_brk: Fix off by one error when validating DAWR region end The Data Address Watchpoint Register (DAWR) on POWER8 can take a 512 byte range but this range must not cross a 512 byte boundary. Unfortunately we were off by one when calculating the end of the region, hence we were not allowing some breakpoint regions which were actually valid. This fixes this error. Signed-off-by: Michael Neuling Reported-by: Edjunior Barbosa Machado Cc: stable@vger.kernel.org # 3.9+ Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed