qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] nbd: Fix overflow return value
@ 2015-02-12  6:21 Yik Fang
  2015-02-12  7:38 ` Fam Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yik Fang @ 2015-02-12  6:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: famz, stefanha, kathy.wangting, Yik Fang, boby.chen,
	rudy.zhangmin, wu.wubin

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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-11 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-03-11 11:39 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).