From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hal Rosenstock Subject: [PATCHv2 1/2] libibmad/smp.c: Fix to smp_query_via for attribute data Date: Tue, 05 Apr 2011 15:23:28 -0400 Message-ID: <4D9B6C30.7000006@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ira Weiny Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org smp_query_via() does not allow setting the sent mad data. Change the data to be both in and out arguments. Signed-off-by: Oren Kladnitsky Signed-off-by: Hal Rosenstock --- Changes since v1: Proper formatting diff --git a/src/smp.c b/src/smp.c index 3ff58ce..2809ffe 100644 --- a/src/smp.c +++ b/src/smp.c @@ -102,7 +102,7 @@ uint8_t *smp_query_via(void *rcvbuf, ib_portid_t * portid, unsigned attrid, portid->sl = 0; portid->qp = 0; - return mad_rpc(srcport, &rpc, portid, 0, rcvbuf); + return mad_rpc(srcport, &rpc, portid, rcvbuf, rcvbuf); } uint8_t *smp_query(void *rcvbuf, ib_portid_t * portid, unsigned attrid, -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html