]> git.karo-electronics.de Git - linux-beck.git/commit
drm/omap: omap_gem: Do not try to unmap page which is not mapped
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 27 Nov 2015 09:00:37 +0000 (11:00 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 2 Nov 2016 08:38:28 +0000 (10:38 +0200)
commit6cb096562e36009d9d6427851a6b441edabe66ab
treeb5a46fd87537e0226bac48e0a6ee880789f1cf25
parenta7e8cd39af6ac815736c31a65898a9951d9d2bd3
drm/omap: omap_gem: Do not try to unmap page which is not mapped

It might be possible that the page has been unmapped already in
omap_gem_cpu_sync() so check before calling dma_unmap_page().

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c