summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-09-15 17:09:32 +0200
committerDave Airlie <airlied@linux.ie>2009-09-16 09:15:02 +1000
commit48e113e516a94ac9622a8326c4de670beb3366e6 (patch)
treee0136b721378b2bae69e6598d6ae40a0b260fa84 /drivers/gpu
parentfdd5cace733370ab7a518a98ef084e02aa76fdea (diff)
downloadblackbird-op-linux-48e113e516a94ac9622a8326c4de670beb3366e6.tar.gz
blackbird-op-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')
-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++) {
OpenPOWER on IntegriCloud