Android 11.0.0 Release 0.66 (RQ2A.210305.006/RQ2A.210305.007,redfin/sunfish)
msm: kgsl: Don't allow re-importing memory owned by KGSL
Don't allow IOCTL_KGSL_MAP_USER_MEM to import user memory that was
already allocated and mapped by KGSL in the first place. Remapping
memory never makes sense and it messes up reference counting in the
pools.
Bug: 175038160
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
Signed-off-by: linjoey <linjoey@google.com>
Change-Id: I23c77d821de8ce91ae9917950bd6e5418fbe2421
(cherry picked from commit a35ab0a387cc286d198ffad4d7099cc5b2b3ae5f)
1 file changed