diff options
| author | Noralf Trønnes <[email protected]> | 2019-04-26 14:47:53 +0200 |
|---|---|---|
| committer | Noralf Trønnes <[email protected]> | 2019-05-08 16:01:40 +0200 |
| commit | 23e35c0eb81a23d40c079a7eb187fc321fa1deb7 (patch) | |
| tree | 3a79e89d4bb59a2223f1cb54a2b81e1d9b78196b /drivers/pci/controller/pci-host-generic.c | |
| parent | 0cbd0adc4429930567083d18cc8c0fbc5f635d96 (diff) | |
drm/cma-helper: Fix drm_gem_cma_free_object()
The logic for freeing an imported buffer with a virtual address is
broken. It will free the buffer instead of unmapping the dma buf.
Fix by reversing the if ladder and first check if the buffer is imported.
Fixes: b9068cde51ee ("drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS")
Cc: [email protected]
Reported-by: "Li, Tingqian" <[email protected]>
Signed-off-by: Noralf Trønnes <[email protected]>
Reviewed-by: Oleksandr Andrushchenko <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions