Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 71fdfe09 authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi Committed by Karsten Tausche
Browse files

msm: kgsl: Use dma_buf_get() to get dma_buf structure



Currently we don't ensure if vma->vm_file is associated with dma_buf. This
can cause issues later when private_data from a non dma_buf file is used as
dma_buf structure. Hence get the fd that is associated with vma->vm_file
and use dma_buf_get() to get pointer to dma_buf structure. dma_buf_get()
ensures that the file from the input fd is associated with dma_buf.

Change-Id: Ib78aef8b16bedca5ca86d3a132278ff9f07dce73
Signed-off-by: default avatarPuranam V G Tejaswi <quic_pvgtejas@quicinc.com>
(cherry picked from commit b618881b6c3997acf21e03080b2990ea71d5652d)
parent 8d9775cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment