OSDN Git Service

msm: kgsl: Add missing check for size against lower VA
authorRajesh Kemisetti <rajeshk@codeaurora.org>
Thu, 10 Dec 2015 10:30:00 +0000 (16:00 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Thu, 24 Mar 2016 04:14:53 +0000 (21:14 -0700)
commitb9ad61fb8effee1f023a18a7dfdfe5dce2c7564d
treef7c7f156e1978924566ba1abe2d594f730a9f9e0
parent9c23d30f6033eaa1780c2a85c1b9e499cb441329
msm: kgsl: Add missing check for size against lower VA

_get_unmapped_area_topdown() subtracts the requested size
from lower entry base without really checking its value.

This leads to overflow while working at boundary conditions.

Add a condition to check entry base with the size and proceed.

Change-Id: Ic695da683b11de35c7c4b8936a35d693dc8fa452
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
drivers/gpu/msm/kgsl_iommu.c