diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-09-03 23:25:53 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-03-24 14:33:24 +0300 |
commit | 3f4d17c4eca9769d56218a38dbfc482794fbde2f (patch) | |
tree | e30601e36e716449d8b0b3e0d74d26154bbef2d9 | |
parent | 549a75498151370214f86eacc788a5832ac01e59 (diff) | |
download | linux-3f4d17c4eca9769d56218a38dbfc482794fbde2f.tar.xz |
drm/omap: clear omap_obj->paddr in omap_gem_put_paddr()
Clear omap_obj's paddr when unmapping the memory, so that it's easier to
catch bad use of the paddr.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index aeb91ed653c9..9b250c93b046 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -828,6 +828,7 @@ int omap_gem_put_paddr(struct drm_gem_object *obj) dev_err(obj->dev->dev, "could not release unmap: %d\n", ret); } + omap_obj->paddr = 0; omap_obj->block = NULL; } } |