]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
IB/sdp: fix data corruption on SLES10 (should affect other systems as well).
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 4 Sep 2006 15:18:07 +0000 (18:18 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:03:59 +0000 (05:03 -0700)
drivers/infiniband/ulp/sdp/sdp_main.c

index 2e28438688c2ad1a95e43ac80ac6d2652f17ce4e..d962cdd23fe3ca86ee0fbff1d2e7bf2f965355ec 100644 (file)
@@ -704,7 +704,7 @@ static void sdp_mark_push(struct sdp_sock *ssk, struct sk_buff *skb)
 
 static inline void sdp_push_pending_frames(struct sock *sk)
 {
-       struct sk_buff *skb = sk->sk_write_queue.prev;
+       struct sk_buff *skb = sk->sk_send_head;
        if (skb) {
                sdp_mark_push(sdp_sk(sk), skb);
                sdp_post_sends(sdp_sk(sk), 0);