diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 603ed6f5..0fa93da9 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -80,15 +80,14 @@ static bool gk20a_is_channel_active(struct gk20a *g, struct channel_gk20a *ch) | |||
80 | 80 | ||
81 | static int gk20a_tsg_bind_channel_fd(struct tsg_gk20a *tsg, int ch_fd) | 81 | static int gk20a_tsg_bind_channel_fd(struct tsg_gk20a *tsg, int ch_fd) |
82 | { | 82 | { |
83 | struct file *f = fget(ch_fd); | ||
84 | struct channel_gk20a *ch; | 83 | struct channel_gk20a *ch; |
85 | int err; | 84 | int err; |
86 | 85 | ||
87 | ch = gk20a_get_channel_from_file(ch_fd); | 86 | ch = gk20a_get_channel_from_file(ch_fd); |
88 | if (!ch) | 87 | if (!ch) |
89 | return -EINVAL; | 88 | return -EINVAL; |
89 | |||
90 | err = ch->g->ops.fifo.tsg_bind_channel(tsg, ch); | 90 | err = ch->g->ops.fifo.tsg_bind_channel(tsg, ch); |
91 | fput(f); | ||
92 | return err; | 91 | return err; |
93 | } | 92 | } |
94 | 93 | ||