From 767f2cedfa784ca5f2de601c60c662988e382ef3 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 10 Dec 2015 15:20:50 +0530 Subject: gpu: nvgpu: fix dereference after null check Coverity id : 20234 Bug 1703084 Change-Id: I7b82a44dde39bf6b811ae144815c0c45468aa740 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/921326 Reviewed-by: Sachin Nikam Tested-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ca44cf21..1efa0c86 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -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); } -- cgit v1.2.2