video: tegra: host: fix invalid pointer
Kirill Artamonov [Thu, 20 Mar 2014 12:34:57 +0000 (14:34 +0200)]
Props to Mayank for spotting the bug

bug 1484677

Change-Id: I263f81b891a3321b074ba334747144bf6d1b4934
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/384381
(cherry picked from commit 440b03565fa18447a909fb42ca248954a4ac12f5)
Reviewed-on: http://git-master/r/406942
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

drivers/video/tegra/host/gk20a/gr_gk20a.c

index 4caaa51..6280928 100644 (file)
@@ -5422,7 +5422,7 @@ int gk20a_gr_isr(struct gk20a *g)
                        }
 
                        if (need_reset)
-                               gk20a_set_error_notifier(ch,
+                               gk20a_set_error_notifier(ch->hwctx,
                                        NVHOST_CHANNEL_GR_ERROR_SW_NOTIFY);
                }