The patch titled Subject: lib: bitmap: add missing mask in bitmap_shift_right has been removed from the -mm tree. Its filename was lib-bitmap-add-missing-mask-in-bitmap_shift_right.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Subject: 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@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/bitmap.h~lib-bitmap-add-missing-mask-in-bitmap_shift_right include/linux/bitmap.h --- a/include/linux/bitmap.h~lib-bitmap-add-missing-mask-in-bitmap_shift_right +++ a/include/linux/bitmap.h @@ -284,7 +284,7 @@ static inline void bitmap_shift_right(un const unsigned long *src, int n, int nbits) { if (small_const_nbits(nbits)) - *dst = *src >> n; + *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> n; else __bitmap_shift_right(dst, src, n, nbits); } _ Patches currently in -mm which might be from linux@xxxxxxxxxxxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html