lib/bitmap.c: fix incorrect use of BITS_TO_LONGS()
Bug spotted by: Ian Molton <spyro@f2s.com> BITS_TO_LONGS() can't be used to derive an index into a bitmap array. Also put a BUG_ON() for the pages > BITS_PER_LONG case we don't cope with.
Showing
Please register or sign in to comment