summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2015-09-02 13:20:59 -0400
committerSri Krishna Chowdary <schowdary@nvidia.com>2015-09-07 01:59:31 -0400
commit47afbb71ead31e5378b9dddf22f92a5ff9bb9d6b (patch)
tree48acf63b79fc5116d3a08313a34a85b9f0483590 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent54c2ae59f0010c75bc03719e7b5ece4040c102d3 (diff)
gpu: nvgpu: fix alignment calculation
consider buffer size as well when calculating the required alignment for a buffer else we would be mapping a VA range greater than requested thus allowing access to entire large page even when not needed creating a security hole. Bug 1492689 Change-Id: Ic404708d238621ea64c26cafd05bc30ba8e02e12 Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com> Reviewed-on: http://git-master/r/793229 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
0 files changed, 0 insertions, 0 deletions