Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When remapping pages accounting for 4G or more memory space, the operation 'count << PAGE_SHIFT' overflows as it is performed on an integer. Solution: cast before doing the bitshift. [[email protected]: fix vm_unmap_ram() also] [[email protected]: fix vmap() as well, per Guillermo] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Guillermo Julián Moreno <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information