From: Tomi Valkeinen Date: Wed, 3 Sep 2014 19:25:53 +0000 (+0000) Subject: drm/omap: clear omap_obj->paddr in omap_gem_put_paddr() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f4d17c4eca9769d56218a38dbfc482794fbde2f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; } }