Commit 3f4d17c4 authored by Tomi Valkeinen's avatar Tomi Valkeinen

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 549a7549
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment