diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-09-12 06:43:20 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:15 -0400 |
commit | 1d026d1f776946d516ee6764d2415b47b8ea5fa5 (patch) | |
tree | 7386d5f27d0aca6c3d31a7de059333ba35b1ea15 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | f9cb1a93d1f861ffd56aa8cfc710dd2659934f8b (diff) |
gpu: nvgpu: check dma_buf_get retval with IS_ERR
dma_buf_get returns PTR_ERRs, so fix checking for null to proper IS_ERR
in gk20a_vm_map_buffer. Buffer mapping from user space with ioctls would
also have paniced here if an improper handle would be passed.
Change-Id: I245fe41cd209e49fc9265e56340c1c8215ffb1d2
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/498320
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
0 files changed, 0 insertions, 0 deletions