gpu: nvgpu: add ptr validation for vm_map_buffer
authorXia Yang <xiay@nvidia.com>
Wed, 14 Sep 2016 18:13:57 +0000 (11:13 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 5 May 2017 21:57:09 +0000 (14:57 -0700)
commit988a3d056cd599a4f3e18d3b589303efd33fb13a
treedd468727b700dcb12825538a99da30e4641cd8be
parentc9c824bfb712f5104bbbb2f32a771a6c92493581
gpu: nvgpu: add ptr validation for vm_map_buffer

dma_buf_get() return value is now validated before
passed down for further process.

Bug 1812180
Bug 1883864

Change-Id: I443d676af2948c924f187988ab1c64c72b3e9232
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/1220869

(cherry picked from commit e6fe9437c609252cf28ac76d2e6b33e905eaa843 in rel-21)
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Change-Id: I443d676af2948c924f187988ab1c64c72b3e9232
Reviewed-on: http://git-master/r/1469135
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/gpu/nvgpu/gk20a/mm_gk20a.c