From: Yuval Shaia <yuval.shaia@oracle.com>
To: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, yuval.shaia@oracle.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw/rdma: Abort send-op if fail to create addr handler
Date: Sat, 18 Aug 2018 16:58:55 +0300 [thread overview]
Message-ID: <20180818135854.GA2984@lap1> (raw)
In-Reply-To: <e835cd66-9830-21c0-c3e2-08f6a1dc64eb@gmail.com>
On Sat, Aug 18, 2018 at 04:46:29PM +0300, Marcel Apfelbaum wrote:
> Hi Yuval,
>
> On 08/14/2018 01:00 PM, Yuval Shaia wrote:
> > Function create_ah might return NULL, let's exit with an error.
> >
> > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> > ---
> > hw/rdma/rdma_backend.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/hw/rdma/rdma_backend.c b/hw/rdma/rdma_backend.c
> > index 35726bda2e..59d02eb567 100644
> > --- a/hw/rdma/rdma_backend.c
> > +++ b/hw/rdma/rdma_backend.c
> > @@ -402,6 +402,10 @@ void rdma_backend_post_send(RdmaBackendDev *backend_dev,
> > if (qp_type == IBV_QPT_UD) {
> > wr.wr.ud.ah = create_ah(backend_dev, qp->ibpd,
> > backend_dev->backend_gid_idx, dgid);
> > + if (!wr.wr.ud.ah) {
> > + comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_FAIL_BACKEND, ctx, 0);
>
> comp_handler takes 3 arguments, but here you pass 4, so the compilation
> fails.
Right, please ignore this patch.
I will send it with a different patch-set which is still under work.
>
> Thanks,
> Marcel
>
> > + goto out_dealloc_cqe_ctx;
> > + }
> > wr.wr.ud.remote_qpn = dqpn;
> > wr.wr.ud.remote_qkey = dqkey;
> > }
>
prev parent reply other threads:[~2018-08-18 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 10:00 [Qemu-devel] [PATCH] hw/rdma: Abort send-op if fail to create addr handler Yuval Shaia
2018-08-16 6:29 ` no-reply
2018-08-16 8:56 ` Yuval Shaia
2018-08-16 8:57 ` Marcel Apfelbaum
2018-08-17 6:38 ` no-reply
2018-08-18 13:46 ` Marcel Apfelbaum
2018-08-18 13:58 ` Yuval Shaia [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=20180818135854.GA2984@lap1 \
--to=yuval.shaia@oracle.com \
--cc=marcel.apfelbaum@gmail.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.