All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] ipmi: missing error code in try_smi_init()
Date: Tue, 06 Mar 2018 13:20:21 +0000	[thread overview]
Message-ID: <be9c68f9-2ecb-d4d3-e51c-ddad4903e3c5@acm.org> (raw)
In-Reply-To: <20180306095803.GA10474@mwanda>

On 03/06/2018 03:58 AM, Dan Carpenter wrote:
> If platform_device_alloc() then we should return -ENOMEM instead of
> returning success.

Thanks, queued for next release.

-corey

> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
> index f2a294f78892..ff870aa91cfe 100644
> --- a/drivers/char/ipmi/ipmi_si_intf.c
> +++ b/drivers/char/ipmi/ipmi_si_intf.c
> @@ -2071,6 +2071,7 @@ static int try_smi_init(struct smi_info *new_smi)
>   						      new_smi->intf_num);
>   		if (!new_smi->pdev) {
>   			pr_err(PFX "Unable to allocate platform device\n");
> +			rv = -ENOMEM;
>   			goto out_err;
>   		}
>   		new_smi->io.dev = &new_smi->pdev->dev;



      parent reply	other threads:[~2018-03-06 13:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06  9:58 [PATCH] ipmi: missing error code in try_smi_init() Dan Carpenter
2018-03-06 10:03 ` Arnd Bergmann
2018-03-06 10:26 ` Julia Lawall
2018-03-06 10:38 ` Dan Carpenter
2018-03-06 13:20 ` Corey Minyard [this message]

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=be9c68f9-2ecb-d4d3-e51c-ddad4903e3c5@acm.org \
    --to=minyard@acm.org \
    --cc=kernel-janitors@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 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.