mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix dereference after null check
Coverity id : 20234 Bug 1703084 Change-Id: I7b82a44dde39bf6b811ae144815c0c45468aa740 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/921326 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
committed by
Sachin Nikam
parent
c4ac1ed369
commit
767f2cedfa
@@ -5471,7 +5471,7 @@ int gk20a_gr_isr(struct gk20a *g)
|
||||
gk20a_dbg_gpu_post_events(fault_ch);
|
||||
}
|
||||
|
||||
if (need_reset)
|
||||
if (need_reset && ch)
|
||||
gk20a_set_error_notifier(ch,
|
||||
NVGPU_CHANNEL_GR_ERROR_SW_NOTIFY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user