components/open-fabrics/libibmad/patches/base.patch
changeset 490 20074ee5793e
parent 369 cc8c00719da9
child 984 f34e7c7efa38
child 2358 4e7c1a169924
child 2359 0b0f9ec6b450
child 2385 b142cc36553d
--- 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;
  			}
  
-@@ -337,7 +337,7 @@
+@@ -175,6 +175,7 @@
+ 					 IB_MAD_TRID_F) != trid);
+ 
+ 		status = umad_status(rcvbuf);
++		errno = status;
+ 		if (!status)
+ 			return length;	/* done */
+ 		if (status == ENOMEM)
+@@ -337,7 +338,7 @@
  		IBPANIC("can't init UMAD library");
  
  	if ((fd = umad_open_port(dev_name, dev_port)) < 0)