IB/ipath: Make send buffers available for kernel if not allocated to user
[safe/jmp/linux-2.6] / drivers / infiniband / hw / ipath / ipath_verbs.c
index 2f9bc29..2e6b6f6 100644 (file)
@@ -875,7 +875,7 @@ static int ipath_verbs_send_pio(struct ipath_qp *qp, u32 *hdr, u32 hdrwords,
        unsigned flush_wc;
        int ret;
 
-       piobuf = ipath_getpiobuf(dd, NULL);
+       piobuf = ipath_getpiobuf(dd, plen, NULL);
        if (unlikely(piobuf == NULL)) {
                ret = -EBUSY;
                goto bail;