From: Filipe David Borba Manana <fdmanana@gmail.com>
To: jglisse@redhat.com
Cc: linux-kernel@vger.kernel.org,
Filipe David Borba Manana <fdmanana@gmail.com>
Subject: [PATCH] Radeon driver: fix memory leak
Date: Wed, 21 Aug 2013 19:31:31 +0100 [thread overview]
Message-ID: <1377109891-14503-1-git-send-email-fdmanana@gmail.com> (raw)
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@gmail.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
next reply other threads:[~2013-08-21 18:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 18:31 Filipe David Borba Manana [this message]
2013-08-21 18:53 ` [PATCH v2] " Filipe David Borba Manana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377109891-14503-1-git-send-email-fdmanana@gmail.com \
--to=fdmanana@gmail.com \
--cc=jglisse@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®