[Openib-windows] [PATCH] create av pd check

Yossi Leybovich sleybo at mellanox.co.il
Thu Mar 9 01:46:09 PST 2006


Fab
 
I think we need to check pd in craete av ( like we check CA, and other
handles) ? 
If yes this patch add the check.

Thanks
Yossi 
 
singed-off-by: Yossi Leybovich 
 
Index: al_av.c
===================================================================
--- al_av.c (revision 1010)
+++ al_av.c (working copy)
@@ -121,7 +121,14 @@
   CL_TRACE_EXIT( AL_DBG_ERROR, g_al_dbg_lvl, ("IB_INVALID_PARAMETER\n")
);
   return IB_INVALID_PARAMETER;
  }
-
+ 
+ if( AL_OBJ_INVALID_HANDLE( h_pd, AL_OBJ_TYPE_H_PD ) )
+ {
+  CL_TRACE_EXIT( AL_DBG_ERROR, g_al_dbg_lvl, ("IB_INVALID_PD_HANDLE\n")
);
+  return IB_INVALID_PD_HANDLE;
+ }
+ 
+  
  /* Get an AV tracking structure. */
  h_av = alloc_av();
  if( !h_av )

-------------- next part --------------
A non-text attachment was scrubbed...
Name: av_pd_check.patch
Type: application/octet-stream
Size: 548 bytes
Desc: av_pd_check.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060309/3da8d48a/attachment.obj>


More information about the ofw mailing list