7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
authorBoris Chiu <Boris.Chiu@Sun.COM>
Tue, 23 Aug 2011 10:11:45 -0700
changeset 490 20074ee5793e
parent 489 3fcae5c85ef0
child 491 cc798e4bc801
7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
components/open-fabrics/libibmad/patches/base.patch
--- a/components/open-fabrics/libibmad/patches/base.patch	Mon Aug 22 11:10:16 2011 +0200
+++ b/components/open-fabrics/libibmad/patches/base.patch	Tue Aug 23 10:11:45 2011 -0700
@@ -226,7 +226,15 @@
  				return -1;
  			}
  
[email protected]@ -337,7 +337,7 @@
[email protected]@ -175,6 +175,7 @@
+ 					 IB_MAD_TRID_F) != trid);
+ 
+ 		status = umad_status(rcvbuf);
++		errno = status;
+ 		if (!status)
+ 			return length;	/* done */
+ 		if (status == ENOMEM)
[email protected]@ -337,7 +338,7 @@
  		IBPANIC("can't init UMAD library");
  
  	if ((fd = umad_open_port(dev_name, dev_port)) < 0)