]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/sctp/sctp.h
[SCTP]: Rewrite of sctp buffer management code
[linux-2.6-omap-h63xx.git] / include / net / sctp / sctp.h
index c9cc00c857821f328a751d7b3ddaf3209c142d27..d5a1ddc7483fb6e7706e5eea88698bd04d2926e4 100644 (file)
@@ -469,6 +469,11 @@ static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
        skb->sk = sk;
        skb->destructor = sctp_sock_rfree;
        atomic_add(event->rmem_len, &sk->sk_rmem_alloc);
+       /*
+        * This mimics the behavior of
+        * sk_stream_set_owner_r
+        */
+       sk->sk_forward_alloc -= event->rmem_len;
 }
 
 /* Tests if the list has one and only one entry. */