Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[pandora-kernel.git] / drivers / infiniband / hw / cxgb3 / iwch_provider.c
index 074d5c2..9c12da0 100644 (file)
@@ -786,8 +786,8 @@ static int iwch_dealloc_mw(struct ib_mw *mw)
        mmid = (mw->rkey) >> 8;
        cxio_deallocate_window(&rhp->rdev, mhp->attr.stag);
        remove_handle(rhp, &rhp->mmidr, mmid);
-       kfree(mhp);
        PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp);
+       kfree(mhp);
        return 0;
 }