[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1377111227-15947-1-git-send-email-fdmanana@gmail.com>
Date: Wed, 21 Aug 2013 19:53:47 +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 v2] 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>
---
V2: put kfree() call inside if statement.
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..5d94d5e 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -911,6 +911,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;
--
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