[openib-general] Re: Re: strange behaviour in svn 4706 libibverbs/init.cwith two adapters

Michael S. Tsirkin mst at mellanox.co.il
Wed Jan 4 02:12:31 PST 2006


You are right. Roland, I think you need something like this:

Fix ibverbs_init for multiple adapters.
Noted by Christoph Raisch.

Index: openib/src/userspace/libibverbs/src/init.c
===================================================================
--- openib/src/userspace/libibverbs/src/init.c	(revision 4716)
+++ openib/src/userspace/libibverbs/src/init.c	(working copy)
@@ -251,7 +251,7 @@ HIDDEN int ibverbs_init(struct ibv_devic
 					goto out;
 				*list = new_list;
 			}
-			*list[num_devices++] = device;
+			(*list)[num_devices++] = device;
 		}
 	}
 

-- 
MST



More information about the general mailing list