aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/lib/bitstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/lib/bitstr.c')
-rw-r--r--arch/x86_64/lib/bitstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/lib/bitstr.c b/arch/x86_64/lib/bitstr.c
index 24676609a6a..7445caf1b5d 100644
--- a/arch/x86_64/lib/bitstr.c
+++ b/arch/x86_64/lib/bitstr.c
@@ -14,7 +14,7 @@ find_next_zero_string(unsigned long *bitmap, long start, long nbits, int len)
/* could test bitsliced, but it's hardly worth it */
end = n+len;
- if (end >= nbits)
+ if (end > nbits)
return -1;
for (i = n+1; i < end; i++) {
if (test_bit(i, bitmap)) {