drm: omapdrm: DMA-unmap pages for all buffer types when freeing buffers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 20 Apr 2017 21:33:57 +0000 (00:33 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:07 +0000 (10:57 +0300)
commit930dc19c0b7278c26c85f05f92cb417f2bd28aa3
tree7a7694930ad10791e9c19f8b1d0fdd9a0a879a32
parent24fbaca0e20acebfcdf7468f03465d5b1966c314
drm: omapdrm: DMA-unmap pages for all buffer types when freeing buffers

Both coherent (uncached) and non-coherent (cached) buffers can have
their pages mapped to the device through the DMA mapping API. Make sure
to unmap any mapped page when freeing a buffer, regardless of its type.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c