From: Dan Carpenter <dan.carpenter@oracle.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] staging: bcm2835: Fix a memory leak in error handling path
Date: Fri, 24 Feb 2017 19:57:31 +0000 [thread overview]
Message-ID: <20170224195731.GB4480@mwanda> (raw)
In-Reply-To: <6585ca42-71f4-1517-c6fc-b9ed2f23c687@i2se.com>
On Fri, Feb 24, 2017 at 01:37:30PM +0100, Stefan Wahren wrote:
> Hi Christophe,
>
> Am 19.02.2017 um 11:34 schrieb Christophe JAILLET:
> >If 'kzalloc()' fails, we should release resources allocated so far, just as
> >done in all other cases in this function.
> >
> >Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> >---
> >Not sure that the error handling path is correct.
> >Is 'gdev[0]' freed? Should it be?
>
Yes, but I already sent a patch to fix this and your leak as well and
Greg merged it.
> sorry, didn't checked your patch yet.
It takes like 30 seconds to review this patch. Do you use mutt? I have
a macro that applies patches and loads vim at the right line.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: dan.carpenter@oracle.com (Dan Carpenter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] staging: bcm2835: Fix a memory leak in error handling path
Date: Fri, 24 Feb 2017 22:57:31 +0300 [thread overview]
Message-ID: <20170224195731.GB4480@mwanda> (raw)
In-Reply-To: <6585ca42-71f4-1517-c6fc-b9ed2f23c687@i2se.com>
On Fri, Feb 24, 2017 at 01:37:30PM +0100, Stefan Wahren wrote:
> Hi Christophe,
>
> Am 19.02.2017 um 11:34 schrieb Christophe JAILLET:
> >If 'kzalloc()' fails, we should release resources allocated so far, just as
> >done in all other cases in this function.
> >
> >Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> >---
> >Not sure that the error handling path is correct.
> >Is 'gdev[0]' freed? Should it be?
>
Yes, but I already sent a patch to fix this and your leak as well and
Greg merged it.
> sorry, didn't checked your patch yet.
It takes like 30 seconds to review this patch. Do you use mutt? I have
a macro that applies patches and loads vim at the right line.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
mchehab@kernel.org, gregkh@linuxfoundation.org,
f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com,
bcm-kernel-feedback-list@broadcom.com, swarren@wwwdotorg.org,
lee@kernel.org, eric@anholt.net, arnd@arndb.de,
devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH] staging: bcm2835: Fix a memory leak in error handling path
Date: Fri, 24 Feb 2017 22:57:31 +0300 [thread overview]
Message-ID: <20170224195731.GB4480@mwanda> (raw)
In-Reply-To: <6585ca42-71f4-1517-c6fc-b9ed2f23c687@i2se.com>
On Fri, Feb 24, 2017 at 01:37:30PM +0100, Stefan Wahren wrote:
> Hi Christophe,
>
> Am 19.02.2017 um 11:34 schrieb Christophe JAILLET:
> >If 'kzalloc()' fails, we should release resources allocated so far, just as
> >done in all other cases in this function.
> >
> >Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> >---
> >Not sure that the error handling path is correct.
> >Is 'gdev[0]' freed? Should it be?
>
Yes, but I already sent a patch to fix this and your leak as well and
Greg merged it.
> sorry, didn't checked your patch yet.
It takes like 30 seconds to review this patch. Do you use mutt? I have
a macro that applies patches and loads vim at the right line.
regards,
dan carpenter
next prev parent reply other threads:[~2017-02-24 19:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-19 10:34 [PATCH] staging: bcm2835: Fix a memory leak in error handling path Christophe JAILLET
2017-02-19 10:34 ` Christophe JAILLET
2017-02-19 10:34 ` Christophe JAILLET
2017-02-24 12:37 ` Stefan Wahren
2017-02-24 12:37 ` Stefan Wahren
2017-02-24 12:37 ` Stefan Wahren
2017-02-24 19:57 ` Dan Carpenter [this message]
2017-02-24 19:57 ` Dan Carpenter
2017-02-24 19:57 ` Dan Carpenter
2017-02-24 21:38 ` Stefan Wahren
2017-02-24 21:38 ` Stefan Wahren
2017-02-24 21:38 ` Stefan Wahren
2017-02-25 4:11 ` Dan Carpenter
2017-02-25 4:11 ` Dan Carpenter
2017-02-25 4:11 ` Dan Carpenter
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=20170224195731.GB4480@mwanda \
--to=dan.carpenter@oracle.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.