summaryrefslogtreecommitdiff
path: root/include/media/i2c
diff options
context:
space:
mode:
authorGuillermo Julián Moreno <guillermo.julian@naudit.es>2016-06-04 00:55:33 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-06-04 01:06:22 +0300
commit65ee03c4b9f89e1b088defd97273be6da169d798 (patch)
treeca5bd05b3bc29cf2a5a07f083fd80221049aa06e /include/media/i2c
parent4340fa55298d17049e71c7a34e04647379c269f3 (diff)
downloadlinux-65ee03c4b9f89e1b088defd97273be6da169d798.tar.xz
mm: fix overflow in vm_map_ram()
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. [akpm@linux-foundation.org: fix vm_unmap_ram() also] [akpm@linux-foundation.org: fix vmap() as well, per Guillermo] Link: http://lkml.kernel.org/r/etPan.57175fb3.7a271c6b.2bd@naudit.es Signed-off-by: Guillermo Julián Moreno <guillermo.julian@naudit.es> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/media/i2c')
0 files changed, 0 insertions, 0 deletions