[openib-general] PATCH - minor fixes for verb calls
Sean Hefty
mshefty at ichips.intel.com
Fri Aug 27 10:40:03 PDT 2004
Roland,
Here's a couple of minor bug fixes for your verb implementation.
- Sean
Index: core/core_mw.c
===================================================================
--- core/core_mw.c (revision 691)
+++ core/core_mw.c (working copy)
@@ -51,7 +51,7 @@
pd = mw->pd;
ret = mw->device->dealloc_mw(mw);
if (!ret)
- atomic_inc(&pd->usecnt);
+ atomic_dec(&pd->usecnt);
return ret;
}
Index: core/core_ah.c
===================================================================
--- core/core_ah.c (revision 691)
+++ core/core_ah.c (working copy)
@@ -65,7 +65,7 @@
pd = ah->pd;
ret = ah->device->destroy_ah(ah);
if (!ret)
- atomic_inc(&pd->usecnt);
+ atomic_dec(&pd->usecnt);
return ret;
}
--
More information about the general
mailing list