summaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-08-07 01:10:20 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 03:01:27 +0200
commitc5341ec8904ebff50f365a2626da6ab525d63b9e (patch)
tree0acb8e7d30405e97097d226a8f4d558470e408fe /lib/bitmap.c
parentlib: bitmap: micro-optimize bitmap_allocate_region (diff)
downloadlinux-c5341ec8904ebff50f365a2626da6ab525d63b9e.tar.xz
linux-c5341ec8904ebff50f365a2626da6ab525d63b9e.zip
lib: bitmap: add missing mask in bitmap_shift_right
There is no guarantee that *src does not contain garbage bits outside the lower nbits, so we need to mask it before the shift-and-assign. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions