]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: Fix crossing SrcAvail handling
authorAmir Vadai <amirv@mellanox.co.il>
Thu, 18 Feb 2010 12:03:27 +0000 (14:03 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:47 +0000 (05:04 -0700)
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_zcopy.c

index bb57d08b656c76bc4fbebefca565d388278ba6b3..6b8c0fe028e96e943c8ed6a29158e3086da05897 100644 (file)
@@ -700,7 +700,7 @@ int sdp_sendmsg_zcopy(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
        sdp_prf1(sk, NULL, "sdp_sendmsg_zcopy start");
        if (ssk->rx_sa) {
                sdp_dbg_data(sk, "Deadlock prevent: crossing SrcAvail\n");
-               return -EAGAIN;
+               return 0;
        }
 
        lock_sock(sk);