From: Michael S. Tsirkin Date: Mon, 4 Sep 2006 15:18:07 +0000 (+0300) Subject: IB/sdp: fix data corruption on SLES10 (should affect other systems as well). X-Git-Tag: v4.1.12-92~264^2~5^2~379 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57bb41e5a90eb26c9912106dde606a00d46c9817;p=users%2Fjedix%2Flinux-maple.git IB/sdp: fix data corruption on SLES10 (should affect other systems as well). --- diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index 2e28438688c2a..d962cdd23fe3c 100644 --- a/drivers/infiniband/ulp/sdp/sdp_main.c +++ b/drivers/infiniband/ulp/sdp/sdp_main.c @@ -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);