projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74bf2ad
)
drm/r600: fix memory leak introduced with 64k malloc avoidance fix.
author
Dave Airlie
<airlied@linux.ie>
Mon, 28 Sep 2009 05:37:25 +0000
(15:37 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Mon, 28 Sep 2009 05:37:25 +0000
(15:37 +1000)
The legacy r600 path shares code, but doesn't share quite enough
to get the freeing correct. Free the pages here also.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_cs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/r600_cs.c
b/drivers/gpu/drm/radeon/r600_cs.c
index ac7d93e2d5d5c07a86f28feccd15d2603ab30a69..06eab79c2eec765b9a6410dd7de31fb80c2e864b 100644
(file)
--- a/
drivers/gpu/drm/radeon/r600_cs.c
+++ b/
drivers/gpu/drm/radeon/r600_cs.c
@@
-722,6
+722,8
@@
static void r600_cs_parser_fini(struct radeon_cs_parser *parser, int error)
kfree(parser->relocs);
for (i = 0; i < parser->nchunks; i++) {
kfree(parser->chunks[i].kdata);
+ kfree(parser->chunks[i].kpage[0]);
+ kfree(parser->chunks[i].kpage[1]);
}
kfree(parser->chunks);
kfree(parser->chunks_array);