mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
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>
This commit is contained in:
parent
549a754981
commit
3f4d17c4ec
@ -828,6 +828,7 @@ int omap_gem_put_paddr(struct drm_gem_object *obj)
|
|||||||
dev_err(obj->dev->dev,
|
dev_err(obj->dev->dev,
|
||||||
"could not release unmap: %d\n", ret);
|
"could not release unmap: %d\n", ret);
|
||||||
}
|
}
|
||||||
|
omap_obj->paddr = 0;
|
||||||
omap_obj->block = NULL;
|
omap_obj->block = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user