From 1a1d77dd589de5a567fa95e36aa6999c704ceca4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 28 Aug 2000 22:00:09 +0000 Subject: Merge with 2.4.0-test7. --- include/asm-alpha/bitops.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/asm-alpha/bitops.h') diff --git a/include/asm-alpha/bitops.h b/include/asm-alpha/bitops.h index 4cdfb21d5..69bfdcaf1 100644 --- a/include/asm-alpha/bitops.h +++ b/include/asm-alpha/bitops.h @@ -271,6 +271,8 @@ extern inline unsigned long find_next_zero_bit(void * addr, unsigned long size, tmp = *p; found_first: tmp |= ~0UL << size; + if (tmp == ~0UL) /* Are any bits zero? */ + return result + size; /* Nope. */ found_middle: return result + ffz(tmp); } -- cgit v1.2.3