提交 8eba8a61 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

drm/v3d: Plug dma_fence leak

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

The irq_fence and done_fence are given a reference that is never
released. The necessary dma_fence_put()s seem to have been
deleted in error in an earlier commit.

Fixes: 0b73676836b2 ("drm/v3d: Clock V3D down when not in use.")
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 8a1f4836
......@@ -410,6 +410,9 @@ v3d_job_free(struct kref *ref)
}
xa_destroy(&job->deps);
dma_fence_put(job->irq_fence);
dma_fence_put(job->done_fence);
v3d_clock_up_put(v3d);
kfree(job);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册