powerpc, hw_breakpoint: Fix off-by-one in checking access address
authorPaul Mackerras <paulus@samba.org>
Wed, 23 Jun 2010 05:42:43 +0000 (15:42 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 23 Jun 2010 05:42:43 +0000 (15:42 +1000)
commit574cb24899d35e71be1d8fb1add2c3306804e4bf
tree4ef17bc8d4fa83448282d0f3a463e3fe2377078f
parente3e94084adb5610987283367574ebc771e8206e1
powerpc, hw_breakpoint: Fix off-by-one in checking access address

The code would accept an access to an address one byte past the end
of the requested range as legitimate, due to having a "<=" rather than
a "<".  This fixes that and cleans up the code a bit.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/hw_breakpoint.c