[WSD] Fix a bug in the registration cache.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 18 May 2007 07:35:48 +0000 (07:35 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 18 May 2007 07:35:48 +0000 (07:35 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@666 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_mem.c

index 5cca974..375bbe9 100644 (file)
@@ -78,8 +78,8 @@ lookup_partial_mr(
                p_item = cl_qlist_next( p_item ) )\r
        {\r
                p_node = PARENT_STRUCT( p_item, struct memory_node, socket_item );\r
-               \r
-               if( __check_mr( p_node->p_reg, acl_mask, start, len ) )\r
+               if(p_node->p_reg &&\r
+                       __check_mr( p_node->p_reg, acl_mask, start, len ) )\r
                {\r
                        cl_spinlock_release( &s->port->hca->rdma_mem_list.mutex );\r
                        IBSP_EXIT( IBSP_DBG_MEM );\r