dma_buf: remove dmabuf sysfs teardown before release
authorGuangming Cao <Guangming.Cao@mediatek.com>
Tue, 20 Jul 2021 10:31:58 +0000 (18:31 +0800)
committerChristian König <christian.koenig@amd.com>
Tue, 20 Jul 2021 10:59:55 +0000 (12:59 +0200)
commit63c57e8dc7a01303ac020d82b1301602561ec001
tree313cc7d904568bcf2887c62d0f0f813b0a5e7ba7
parentb46998d81a1d2c961d570397e87a83ef365d2edf
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>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210720103158.83439-1-guangming.cao@mediatek.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/dma-buf/dma-buf.c