Skip to content
Commit 0f23c7dc authored by Abhishek Barman's avatar Abhishek Barman Committed by Pranav Patel
Browse files

msm: kgsl: Fix gpuaddr_in_range() to check upper bound



Currently gpuaddr_in_range() accepts only the gpuaddr & returns
true if it lies in valid range. But this does not mean that the
entire buffer is within range.
Modify the function to accept size as a parameter and check that
both starting & ending points of buffer lie within mmu range.

Change-Id: I1d722295b9a27e746bfdb6d3bf409ffe722193cb
Signed-off-by: default avatarRohan Sethi <quic_rohsethi@quicinc.com>
Signed-off-by: default avatarAbhishek Barman <quic_abarman@quicinc.com>
Signed-off-by: default avatarravnar <quic_ravnar@quicinc.com>
Signed-off-by: default avatarKaushal Sanadhya <quic_ksanadhy@quicinc.com>
Signed-off-by: default avatarPranav Patel <quic_pranavp@quicinc.com>
parent 8bb61049
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment