lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ