Files
linux/drivers/gpu/drm
Noralf Trønnes 23e35c0eb8 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: b9068cde51 ("drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS")
Cc: stable@vger.kernel.org
Reported-by: "Li, Tingqian" <tingqian.li@intel.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190426124753.53722-1-noralf@tronnes.org
2019-05-08 16:01:40 +02:00
..
2019-01-24 13:20:42 +01:00
2019-04-24 11:23:20 +09:00
2019-01-24 13:20:42 +01:00
2019-04-17 20:56:40 +08:00
2019-01-29 15:45:21 +01:00
2019-04-15 15:51:49 +10:00
2019-01-29 15:45:21 +01:00
2019-01-24 13:20:42 +01:00
2019-04-01 11:00:18 +02:00
2019-03-19 15:04:03 -05:00
2019-04-15 15:51:49 +10:00
2019-01-24 13:20:42 +01:00
2019-04-25 10:02:10 -04:00
2019-01-29 15:45:21 +01:00
2019-02-04 10:21:17 +01:00
2019-01-12 13:07:58 +01:00
2018-11-30 10:57:18 +01:00