diff options
| author | Neeraja P <neerp@codeaurora.org> | 2020-08-19 11:40:43 +0530 |
|---|---|---|
| committer | Neeraja P <neerp@codeaurora.org> | 2020-08-19 11:40:43 +0530 |
| commit | cbc3abdd7f327200e94ff66bd4b4dad6a2123f3b (patch) | |
| tree | 74fd9c5bc01d01b2d44b97f761f08e513170a721 /kernel/sysctl_binary.c | |
| parent | 4a1a4fb57a7c84060e82d8e59b7851f1ed7e107f (diff) | |
msm: kgsl: Correctly clean up dma buffer attachment in case of error
In kgsl_ioctl_gpuobj_import(), user memory of type KGSL_USER_MEM_TYPE_ADDR
can also lead to setting up a dma buffer. When attaching mem entry to
process fails, dma buffer attachment is cleaned up only in case of
KGSL_USER_MEM_TYPE_DMABUF. Similar situation can arise in case of
kgsl_ioctl_map_user_mem(). Fix this by obtaining user memory type from
the memdesc flags.
Change-Id: I502bd0ae19241802e8f835f20391b2ce67999418
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: Neeraja P <neerp@codeaurora.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
