[ewg] [PATCH] ibv_cmd_modify_qp: Add valgrind make memory defined for passed attributes

Michalski, Jan M jan.m.michalski at intel.com
Tue Nov 8 04:31:24 PST 2016


---
src/cmd.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/cmd.c b/src/cmd.c
index 11f6509..53617aa 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -1221,6 +1221,8 @@ int ibv_cmd_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
                                   int attr_mask,
                                   struct ibv_modify_qp *cmd, size_t cmd_size)
{
+             (void) VALGRIND_MAKE_MEM_DEFINED(attr, sizeof *attr);
+
              IBV_INIT_CMD(cmd, cmd_size, MODIFY_QP);
               cmd->qp_handle                               = qp->handle;
--
2.7.4
--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20161108/4a71e5e1/attachment.html>


More information about the ewg mailing list