From: Rasmus Villemoes Date: Wed, 6 Aug 2014 23:10:20 +0000 (-0700) Subject: lib: bitmap: add missing mask in bitmap_shift_right X-Git-Tag: omap-for-v3.17/fixes-against-rc2~137^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5341ec8904ebff50f365a2626da6ab525d63b9e;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed