OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549a754
)
drm/omap: clear omap_obj->paddr in omap_gem_put_paddr()
author
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 3 Sep 2014 19:25:53 +0000
(19:25 +0000)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 11:33:24 +0000
(13:33 +0200)
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>
drivers/gpu/drm/omapdrm/omap_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/omap_gem.c
b/drivers/gpu/drm/omapdrm/omap_gem.c
index
aeb91ed
..
9b250c9
100644
(file)
--- 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;
}
}