author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Mon, 10 Nov 2014 10:23:01 +0000 (12:23 +0200) | ||
committer | Jyri Sarha <jsarha@ti.com> | |
Mon, 10 Nov 2014 13:42:32 +0000 (15:42 +0200) | ||
commit | 40436f6a6869768bf3848b861c9e1b90b87f5ff0 | |
tree | 1df732dd57127898e225b03c7a29cb36a1486b0f | tree | snapshot (tar.xz tar.gz zip) |
parent | c0d1486118dee5e97fc709520d92a8ed872019dd | commit | diff |
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>
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 | diff | blob | history |