[ofa-general] [PATCH] Fix error return code from mad_send_via

Ira Weiny weiny2 at llnl.gov
Wed Jul 8 17:06:00 PDT 2009


From: Ira Weiny <weiny2 at llnl.gov>
Date: Wed, 8 Jul 2009 16:52:09 -0700
Subject: [PATCH] Fix error return code from mad_send_via


Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
 libibmad/src/serv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibmad/src/serv.c b/libibmad/src/serv.c
index ac3a177..c9a093a 100644
--- a/libibmad/src/serv.c
+++ b/libibmad/src/serv.c
@@ -64,7 +64,7 @@ int mad_send_via(ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp,
 	DEBUG("rmpp %p data %p", rmpp, data);
 
 	if (mad_build_pkt(umad, rpc, dport, rmpp, data) < 0)
-		return 0;
+		return -1;
 
 	if (ibdebug) {
 		IBWARN("data offs %d sz %d", rpc->dataoffs, rpc->datasz);
-- 
1.5.4.5




More information about the general mailing list