Commit 0b94a0fb authored by yipeng xiang's avatar yipeng xiang Committed by Jhih-Chen Huang (xWF)
Browse files

ANDROID: dma-buf: Add vendor hook for dmabuf stats attribute_show



When using android_rvh_dma_buf_stats_teardown to implement asynchronous
release of dmabuf sysfs stats, the dmabuf stats attribute_show needs to
first get dmabuf to prevent UAF issues caused by dmabuf release.
Add two hook points to implement get dmabuf and put dmabuf respectively.

Bug: 401424955
Bug: 405877755
Change-Id: Ie522b0cede07445b4eb0cc8ec3e5c84113ce9813
Signed-off-by: default avataryipeng xiang <yipengxiang@honor.corp-partner.google.com>
(cherry picked from commit d89f54da)
parent c5074daf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment