drm/radeon/kms: Free CS parser state tracking memory.
authorMichel Dänzer <daenzer@vmware.com>
Tue, 15 Sep 2009 15:09:32 +0000 (17:09 +0200)
committerDave Airlie <airlied@linux.ie>
Tue, 15 Sep 2009 23:15:02 +0000 (09:15 +1000)
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>
drivers/gpu/drm/radeon/radeon_cs.c

index b530926..12f5990 100644 (file)
@@ -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++) {