diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index f0cf920c..d742e8dc 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -105,8 +105,9 @@ int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va) | |||
105 | struct nvgpu_gr_ctx *gr_ctx; | 105 | struct nvgpu_gr_ctx *gr_ctx; |
106 | 106 | ||
107 | tsg = tsg_gk20a_from_ch(c); | 107 | tsg = tsg_gk20a_from_ch(c); |
108 | if (!tsg) | 108 | if (!tsg) { |
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | } | ||
110 | 111 | ||
111 | gr_ctx = &tsg->gr_ctx; | 112 | gr_ctx = &tsg->gr_ctx; |
112 | 113 | ||