From: Michel Dänzer Date: Tue, 15 Sep 2009 15:09:32 +0000 (+0200) Subject: drm/radeon/kms: Free CS parser state tracking memory. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=48e113e516a94ac9622a8326c4de670beb3366e6;p=linux-beck.git 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 Signed-off-by: Dave Airlie --- 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++) {