All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yik Fang <eric.fangyi@huawei.com>
To: Pbonzini@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] nbd: Fix overflow return value
Date: Wed, 11 Mar 2015 09:27:51 +0800	[thread overview]
Message-ID: <54FF9A17.10600@huawei.com> (raw)
In-Reply-To: <54FD0267.60506@huawei.com>

Paolo,

Can you have a look at this patch, and give me some advices?

Regards,
Yik Fang


-------- 转发的消息 --------
主题: Re: [Qemu-devel] [PATCH] nbd: Fix overflow return value
日期: Mon, 9 Mar 2015 10:16:07 +0800
发件人: Yik Fang <eric.fangyi@huawei.com>
收件人: armbru@redhat.com, qemu-devel@nongnu.org
抄送: pbonzini@redhat.com

Thanks to Markus for your help!


On 2015/3/2 9:25, Fangyi (C) wrote:
> PING
> The value of reply.error should be the type unsigned int.
>
> Signed-off-by: Yik Fang <eric.fangyi@huawei.com>
> ---
>   nbd.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/nbd.c b/nbd.c
> index e56afbc1..30e2f3b 100644
> --- a/nbd.c
> +++ b/nbd.c
> @@ -1295,7 +1295,7 @@ static void nbd_trip(void *opaque)
>       default:
>           LOG("invalid request type (%u) received", request.type);
>       invalid_request:
> -        reply.error = -EINVAL;
> +        reply.error = EINVAL;
>       error_reply:
>           if (nbd_co_send_reply(req, &reply, 0) < 0) {
>               goto out;
> -- 1.8.5
>
>
>
>

  reply	other threads:[~2015-03-11  1:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12  6:21 [Qemu-devel] [PATCH] nbd: Fix overflow return value Yik Fang
2015-02-12  7:38 ` Fam Zheng
2015-03-02  1:25 ` Fangyi (C)
2015-03-02  9:48   ` Markus Armbruster
2015-03-09  2:16   ` Yik Fang
2015-03-11  1:27     ` Yik Fang [this message]
2015-03-11 11:39 ` Paolo Bonzini

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=54FF9A17.10600@huawei.com \
    --to=eric.fangyi@huawei.com \
    --cc=Pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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.