]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sctp/ulpevent.c
[NET] CORE: Introducing new memory accounting interface.
[net-next-2.6.git] / net / sctp / ulpevent.c
index 307314356e1662317c25be57050f79f366a9395e..047c27df98f441aa8b8e3f33427a5436bfb41f74 100644 (file)
@@ -700,7 +700,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc,
        if (rx_count >= asoc->base.sk->sk_rcvbuf) {
 
                if ((asoc->base.sk->sk_userlocks & SOCK_RCVBUF_LOCK) ||
-                  (!sk_stream_rmem_schedule(asoc->base.sk, chunk->skb)))
+                   (!sk_rmem_schedule(asoc->base.sk, chunk->skb->truesize)))
                        goto fail;
        }