mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: rchinthekindi@stec-inc.com, abhansali@stec-inc.com,
	jmoyer@redhat.com, ramprasad.chinthekindi@hgst.com,
	yongjun_wei@trendmicro.com.cn, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] skd: fix error return code in skd_pci_probe()
Date: Thu, 31 Oct 2013 08:16:19 -0600	[thread overview]
Message-ID: <20131031141619.GG10091@kernel.dk> (raw)
In-Reply-To: <CAPgLHd-HqMsv_CAbHUUaOw=3GSZbGXLmYvQVXJVAk5j0JYxdNQ@mail.gmail.com>

On Wed, Oct 30 2013, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Fix to return -ENOMEM in the skd construct error handling
> case instead of 0, as done elsewhere in this function.
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
>  drivers/block/skd_main.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
> index ab17bff..1a8717f 100644
> --- a/drivers/block/skd_main.c
> +++ b/drivers/block/skd_main.c
> @@ -5321,8 +5321,10 @@ static int skd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
>  	}
>  
>  	skdev = skd_construct(pdev);
> -	if (skdev == NULL)
> +	if (skdev == NULL) {
> +		rc = -ENOMEM;
>  		goto err_out_regions;
> +	}
>  
>  	skd_pci_info(skdev, pci_str);
>  	pr_info("(%s): %s 64bit\n", skd_name(skdev), pci_str);

Applied, thanks.

-- 
Jens Axboe


      reply	other threads:[~2013-10-31 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  5:23 Wei Yongjun
2013-10-31 14:16 ` Jens Axboe [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=20131031141619.GG10091@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=abhansali@stec-inc.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ramprasad.chinthekindi@hgst.com \
    --cc=rchinthekindi@stec-inc.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome