]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: fix for handling multi iov's in ZCOPY.
authorEldad Zinger <eldadz@mellanox.co.il>
Tue, 15 Jun 2010 05:08:22 +0000 (08:08 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:04 +0000 (05:05 -0700)
Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_zcopy.c

index a8717ad3a5778c79795711d99e9cfca5efd4e50b..4cb8dff79e9a76667f6fd6d81be05bfbedfdb1c0 100644 (file)
@@ -554,6 +554,9 @@ int sdp_rdma_to_iovec(struct sock *sk, struct iovec *iov, struct sk_buff *skb,
        int len = *used;
        int copied;
 
+       while (!iov->iov_len)
+               ++iov;
+
        sdp_dbg_data(&ssk->isk.sk, "preparing RDMA read."
                " len: 0x%x. buffer len: 0x%lx\n", len, iov->iov_len);