[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1377109891-14503-1-git-send-email-fdmanana@gmail.com>
Date: Wed, 21 Aug 2013 19:31:31 +0100
From: Filipe David Borba Manana <fdmanana@...il.com>
To: jglisse@...hat.com
Cc: linux-kernel@...r.kernel.org,
Filipe David Borba Manana <fdmanana@...il.com>
Subject: [PATCH] Radeon driver: fix memory leak
When freeing a struct radeon_device, its member iio was
not being freed, resulting in a memory leak.
Signed-off-by: Filipe David Borba Manana <fdmanana@...il.com>
---
drivers/gpu/drm/radeon/radeon_device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 63398ae..e57efb4 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -912,6 +912,7 @@ void radeon_atombios_fini(struct radeon_device *rdev)
if (rdev->mode_info.atom_context) {
kfree(rdev->mode_info.atom_context->scratch);
}
+ kfree(rdev->mode_info.atom_context->iio);
kfree(rdev->mode_info.atom_context);
rdev->mode_info.atom_context = NULL;
kfree(rdev->mode_info.atom_card_info);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists