[openib-general] [PATCH] ib_uverbs_create_ah() doesn't initialize ib_uobject.object pointer

Ralph Campbell ralphc at pathscale.com
Fri Jun 16 13:30:31 PDT 2006


I get a NULL pointer panic when trying to use the current trunk
SVN (rev 8088).  I traced it down to ib_uverbs_create_ah()
failing to initialize the ib_uobject.object pointer.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

Index: src/linux-kernel/infiniband/core/uverbs_cmd.c
===================================================================
--- src/linux-kernel/infiniband/core/uverbs_cmd.c	(revision 8088)
+++ src/linux-kernel/infiniband/core/uverbs_cmd.c	(working copy)
@@ -1779,6 +1779,7 @@
 	}
 
 	ah->uobject = uobj;
+	uobj->object = ah;
 	ret = idr_add_uobj(&ib_uverbs_ah_idr, uobj);
 	if (ret)
 		goto err_destroy;


-- 
Ralph Campbell <ralphc at pathscale.com>





More information about the general mailing list