diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2015-04-08 07:59:03 -0400 |
---|---|---|
committer | Ishan Mittal <imittal@nvidia.com> | 2015-05-18 01:49:24 -0400 |
commit | c19c04644616f6262d40f0d66e48dc50c856b24b (patch) | |
tree | 5524cb61f9fae9520d7dbe329cdfe5890e7786b1 /drivers/gpu/nvgpu/Makefile | |
parent | c90a897c8e3bf7563a93442604bd751d9c123e4e (diff) |
gpu: nvgpu: protect missing sgt in gk20a_mem_phys
Return zero for missing sgt instead of attempting to dereference NULL.
Those NULL conditions should be almost nonexistent, and zero is not
normally used.
When reading gk20a_mem_phys() in gk20a_gr_get_chid_from_ctx() from an
isr, the mem desc may race with channel deletion and get suddendly
zeroed, even if the channel's in_use flag would be set. Plain zero
results in expected behaviour.
Change-Id: Id8ce37798d6fd3ceeb96a3f521c82569fccf30aa
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/729006
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
0 files changed, 0 insertions, 0 deletions