bitmap: Fix bitmap_allocate1() bug when n_bits is a multiple of 32.
authorZhengLingyun <konghuarukhr@163.com>
Mon, 8 Jul 2013 21:10:26 +0000 (14:10 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Jul 2013 21:16:21 +0000 (14:16 -0700)
commita6913ea8529fb9dc7386ce5407027dc5745250eb
tree07c41adae60613f28366fe8a1ea1aa474c424036
parentea401d9ace433e73f2cdd05dfde5debf506b6c5d
bitmap: Fix bitmap_allocate1() bug when n_bits is a multiple of 32.

In function bitmap_allocate1(), the last "unsigned long" in bitmap was
set to all 0-bits when (n_bits % BITMAP_ULONG_BITS == 0).  This commit
correctly sets it to all 1-bits.

Signed-off-by: ZhengLingyun <konghuarukhr@163.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/bitmap.c