X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsctp%2Fendpointola.c;h=334f61773e6d692844aab739df7ca0084f54ab1c;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=b4631b3001a3d79d419fc85409e957e9ea99a1d9;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index b4631b300..334f61773 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -125,8 +125,9 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, sp->autoclose * HZ; /* Use SCTP specific send buffer space queues. */ + ep->sndbuf_policy = sctp_sndbuf_policy; sk->sk_write_space = sctp_write_space; - sk->sk_use_write_queue = 1; + sock_set_flag(sk, SOCK_USE_WRITE_QUEUE); /* Initialize the secret key used with cookie. */ get_random_bytes(&ep->secret_key[0], SCTP_SECRET_SIZE);