FROMGIT: dma_buf: remove dmabuf sysfs teardown before release
Dmabuf sysfs stat is used for dmabuf info track.
But these file maybe still in use after buffer released,
should clear it before buffer release.
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
Bug: 193585160
(cherry picked from commit 63c57e8dc7
https://anongit.freedesktop.org/git/drm/drm-misc.git drm-misc)
Link: https://patchwork.freedesktop.org/patch/445008/
Change-Id: I0715d265f1c363130bd6cf4c036a5fd3730e2b16
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
This commit is contained in:
parent
1dc0dd2573
commit
fdb1cfe2d3
1 changed files with 1 additions and 1 deletions
|
|
@ -98,12 +98,12 @@ static void dma_buf_release(struct dentry *dentry)
|
|||
*/
|
||||
BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active);
|
||||
|
||||
dma_buf_stats_teardown(dmabuf);
|
||||
dmabuf->ops->release(dmabuf);
|
||||
|
||||
if (dmabuf->resv == (struct dma_resv *)&dmabuf[1])
|
||||
dma_resv_fini(dmabuf->resv);
|
||||
|
||||
dma_buf_stats_teardown(dmabuf);
|
||||
module_put(dmabuf->owner);
|
||||
kfree(dmabuf->name);
|
||||
kfree(dmabuf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue