|
From: | Michael R. Hines |
Subject: | Re: [Qemu-stable] [PATCH] rdma: fix error check |
Date: | Tue, 24 Sep 2013 14:09:06 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 08/23/2013 04:44 AM, Jie Yang wrote:
NACK: This only partially fixes the bug, actually. Instead, please do the following: /* many IB functions return positive errors, not negative errors */ ret = ibv_post_send(rdma->qp, &send_wr, &bad_wr)); if (ret > 0) { fprintf(stderr, "Failed to post IB SEND for control!\n"); return -ret; } - Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |