diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg_t19x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg_t19x.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg_t19x.c index bf6088ab..b0b1f9c4 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg_t19x.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg_t19x.c | |||
@@ -44,7 +44,7 @@ static int gv11b_tsg_ioctl_bind_channel_ex(struct gk20a *g, | |||
44 | ch = gk20a_get_channel_from_file(arg->channel_fd); | 44 | ch = gk20a_get_channel_from_file(arg->channel_fd); |
45 | if (!ch) | 45 | if (!ch) |
46 | return -EINVAL; | 46 | return -EINVAL; |
47 | if (arg->subcontext_id < gv11b_get_max_subctx_count(g)) | 47 | if (arg->subcontext_id < g->fifo.t19x.max_subctx_count) |
48 | ch->t19x.subctx_id = arg->subcontext_id; | 48 | ch->t19x.subctx_id = arg->subcontext_id; |
49 | else | 49 | else |
50 | return -EINVAL; | 50 | return -EINVAL; |