From: Mike Rapoport <mike@compulab.co.il>
To: unlisted-recipients:; (no To-header on input)
Cc: rpurdie@linux.intel.com, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, eric.miao@marvell.com,
Mike Rapoport <mike@compulab.co.il>,
rpurdie@linux.intel.com
Subject: [PATCH] drivers/video/backlight/da903x.c: introduce one more missing kfree
Date: Wed, 19 Nov 2008 10:51:13 +0200 [thread overview]
Message-ID: <1227084673-10079-1-git-send-email-mike@compulab.co.il> (raw)
In-Reply-To: <Pine.LNX.4.64.0811141905330.10023@pc-004.diku.dk>
In-Reply-To: <Pine.LNX.4.64.0811141905330.10023@pc-004.diku.dk>
One more error handling code should have kfree as well
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
---
drivers/video/backlight/da903x.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/backlight/da903x.c b/drivers/video/backlight/da903x.c
index 75388b9..93bb434 100644
--- a/drivers/video/backlight/da903x.c
+++ b/drivers/video/backlight/da903x.c
@@ -131,6 +131,7 @@ static int da903x_backlight_probe(struct platform_device *pdev)
data, &da903x_backlight_ops);
if (IS_ERR(bl)) {
dev_err(&pdev->dev, "failed to register backlight\n");
+ kfree(data);
return PTR_ERR(bl);
}
--
1.5.6.4
next prev parent reply other threads:[~2008-11-19 9:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 18:06 [PATCH 2/3] drivers/video/backlight/da903x.c: introduce " Julia Lawall
2008-11-19 8:51 ` Mike Rapoport [this message]
2008-11-19 8:55 ` [PATCH] drivers/video/backlight/da903x.c: introduce one more " Eric Miao
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=1227084673-10079-1-git-send-email-mike@compulab.co.il \
--to=mike@compulab.co.il \
--cc=eric.miao@marvell.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rpurdie@linux.intel.com \
/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®