]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[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@666 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/wsd/user/ibsp_mem.c

index 5cca974954eeb8eab2f06056adbd7b9173fc6291..375bbe90e14642ace3708763b92d9146e2aed2a5 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