From: Tushar Behera <tushar.behera@linaro.org>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: gregkh@linuxfoundation.org, ganesanr@broadcom.com,
yongjun_wei@trendmicro.com.cn, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] Staging: netlogic: fix missing free_netdev() on error in xlr_net_probe()
Date: Tue, 18 Jun 2013 17:23:22 +0530 [thread overview]
Message-ID: <51C04A32.1080208@linaro.org> (raw)
In-Reply-To: <CAPgLHd_vfuN7Uenprrc_230MbyR7hAg+D4NCSSKEfcGNDtbS_Q@mail.gmail.com>
On 06/18/2013 03:23 PM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Fix missing free_netdev() before return from function xlr_net_probe()
> in the devm_ioremap_resource() error handling case.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> no compile test.
> ---
> drivers/staging/netlogic/xlr_net.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c
> index b529d79..2acde54 100644
> --- a/drivers/staging/netlogic/xlr_net.c
> +++ b/drivers/staging/netlogic/xlr_net.c
> @@ -1023,9 +1023,9 @@ static int xlr_net_probe(struct platform_device *pdev)
> ndev->base_addr = (unsigned long) devm_ioremap_resource
> (&pdev->dev, res);
> if (IS_ERR_VALUE(ndev->base_addr)) {
> - dev_err(&pdev->dev,
> - "devm_ioremap_resource failed\n");
> - return ndev->base_addr;
> + dev_err(&pdev->dev, "devm_ioremap_resource failed\n");
Please remove this error message too. During review of my patchset, it
was pointed that this error message is redundant. There is already a
similar error message within devm_ioremap_resource call.
> + err = ndev->base_addr;
> + goto err_gmac;
> }
>
> res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
>
--
Tushar Behera
next prev parent reply other threads:[~2013-06-18 11:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 9:53 [PATCH -next] Staging: netlogic: fix missing free_netdev() on error in xlr_net_probe() Wei Yongjun
2013-06-18 11:53 ` Tushar Behera [this message]
2013-06-19 2:29 ` [PATCH -next v2] " Wei Yongjun
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=51C04A32.1080208@linaro.org \
--to=tushar.behera@linaro.org \
--cc=devel@driverdev.osuosl.org \
--cc=ganesanr@broadcom.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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.