diff options
| author | Pankaj Gupta <quic_gpankaj@quicinc.com> | 2023-02-28 14:39:57 +0530 |
|---|---|---|
| committer | Pankaj Gupta <quic_gpankaj@quicinc.com> | 2023-02-28 14:39:57 +0530 |
| commit | 438808d164b53fb3e58e16596abc832adce344bf (patch) | |
| tree | 64036fe695df5aeccab5b1f7f340b656bdaa184a /kernel_headers.py | |
| parent | 67887f6ac3f11fd5ee1639e18d854e6071e58c51 (diff) | |
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: Puranam V G Tejaswi <quic_pvgtejas@quicinc.com>
Signed-off-by: Pankaj Gupta <quic_gpankaj@quicinc.com>
Diffstat (limited to 'kernel_headers.py')
0 files changed, 0 insertions, 0 deletions
