diff --git a/kernel/base/core/los_bitmap.c b/kernel/base/core/los_bitmap.c index 937084cd63d1829010fb72b7ce70f77a8a5ce50a..ae62a47c259a8453014d748a01733300776324e7 100644 --- a/kernel/base/core/los_bitmap.c +++ b/kernel/base/core/los_bitmap.c @@ -92,7 +92,7 @@ VOID LOS_BitmapSetNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsSet) UINTPTR maskToSet = BITMAP_FIRST_WORD_MASK(start); while (numsSet > bitsToSet) { - *p |= bitsToSet; + *p |= maskToSet; numsSet -= bitsToSet; bitsToSet = BITMAP_BITS_PER_WORD; maskToSet = OS_BITMAP_WORD_MASK;