aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorBecky Bruce <[email protected]>2011-07-26 00:11:49 +0000
committerLinus Torvalds <[email protected]>2011-07-26 03:57:07 +0000
commit2b37c35e6552b0d04d5db9728bc7af22d53f731a (patch)
tree5ccccfe90e6bfb472e6000fd4f55c9be66eb795c /mm/sparse.c
parentipc/sem.c: fix race with concurrent semtimedop() timeouts and IPC_RMID (diff)
downloadkernel-2b37c35e6552b0d04d5db9728bc7af22d53f731a.tar.gz
kernel-2b37c35e6552b0d04d5db9728bc7af22d53f731a.zip
fs/hugetlbfs/inode.c: fix pgoff alignment checking on 32-bit
This: vma->vm_pgoff & ~(huge_page_mask(h) >> PAGE_SHIFT) is incorrect on 32-bit. It causes us to & the pgoff with something that looks like this (for a 4m hugepage): 0xfff003ff. The mask should be flipped and *then* shifted, to give you 0x0000_03fff. Signed-off-by: Becky Bruce <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions