summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
index 9ed5fef3..11790f4a 100644
--- a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
@@ -272,6 +272,8 @@ static int nvgpu_gpu_ioctl_inval_icache(
272 struct nvgpu_dbg_gpu_reg_op ops; 272 struct nvgpu_dbg_gpu_reg_op ops;
273 273
274 ch = gk20a_get_channel_from_file(args->channel_fd); 274 ch = gk20a_get_channel_from_file(args->channel_fd);
275 if (!ch)
276 return -EINVAL;
275 277
276 ops.op = REGOP(READ_32); 278 ops.op = REGOP(READ_32);
277 ops.type = REGOP(TYPE_GR_CTX); 279 ops.type = REGOP(TYPE_GR_CTX);