From: Jason Gunthorpe <jgg@ziepe.ca>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] RDMA: Fix an uninitialized variable
Date: Fri, 03 Aug 2018 19:43:21 +0000 [thread overview]
Message-ID: <20180803194321.GA25860@ziepe.ca> (raw)
In-Reply-To: <20180803192431.pmisuz3qwefd45se@kili.mountain>
On Fri, Aug 03, 2018 at 10:24:31PM +0300, Dan Carpenter wrote:
> A couple of the callers assume that ib_post_send() initializes
> *bad_send_wr. It doesn't look like we can rely on the ->post_send()
> function to initialize it. For example in the i40iw_post_recv()
> function and there are some error paths there which don't set it.
I think those are bugs in the drivers, if bad_wr is provided, and
post_send fails then it must be set to the wr that has a problem, left
unset/uninit is incorrect.
This is a high performance call path, so I'd prefer not to see
unnecessary babying of drivers..
Bart?
Thanks,
Jason
next prev parent reply other threads:[~2018-08-03 19:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 19:24 [PATCH] RDMA: Fix an uninitialized variable Dan Carpenter
2018-08-03 19:43 ` Jason Gunthorpe [this message]
2018-08-03 19:56 ` Bart Van Assche
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=20180803194321.GA25860@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=kernel-janitors@vger.kernel.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.