[PATCH] Radeon driver: fix memory leak

From: Filipe David Borba Manana
Date: Wed Aug 21 2013 - 14:31:56 EST


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@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/