summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorMichel Dänzer2009-09-15 17:09:32 +0200
committerDave Airlie2009-09-16 01:15:02 +0200
commit48e113e516a94ac9622a8326c4de670beb3366e6 (patch)
treee0136b721378b2bae69e6598d6ae40a0b260fa84 /drivers/gpu/drm/radeon
parentdrm/radeon/kms: Don't kzalloc memory which is immediately overwritten. (diff)
downloadkernel-qcow2-linux-48e113e516a94ac9622a8326c4de670beb3366e6.tar.gz
kernel-qcow2-linux-48e113e516a94ac9622a8326c4de670beb3366e6.tar.xz
kernel-qcow2-linux-48e113e516a94ac9622a8326c4de670beb3366e6.zip
drm/radeon/kms: Free CS parser state tracking memory.
Fixes leak hidden in commit 9f022ddfb23793b475ff7e57ac08a766dd5d31bd ('drm/radeon/kms: convert r4xx to new init path'). Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
index b530926a2178..12f5990c2d2a 100644
--- a/drivers/gpu/drm/radeon/radeon_cs.c
+++ b/drivers/gpu/drm/radeon/radeon_cs.c
@@ -185,6 +185,7 @@ static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error)
mutex_unlock(&parser->rdev->ddev->struct_mutex);
}
}
+ kfree(parser->track);
kfree(parser->relocs);
kfree(parser->relocs_ptr);
for (i = 0; i < parser->nchunks; i++) {