drm/omap: tiler: fix race condition with engine->async
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 10 Nov 2014 10:23:01 +0000 (12:23 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 11:50:56 +0000 (13:50 +0200)
commite7e24df4715906ad25041b0a4ca613186d4cf849
tree493a5c35ea01aa408ee6ba47b428c337c33c15dd
parent2dd3887b503c1cc8a61ef4a4f24462ce03f3ada5
drm/omap: tiler: fix race condition with engine->async

The tiler irq handler uses engine->async value, but the code that sets
engine->async and enables the interrupt does not have a barrier. This
may cause the irq handler to see the old value of engine->async, causing
memory corruption.

Reported-by: Harinarayan Bhatta <harinarayan@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c