From 8d47b857467802fdadadbe9aa30de0397a76a6e3 Mon Sep 17 00:00:00 2001 From: Sridhar Samudrala Date: Thu, 28 Apr 2005 12:00:23 -0700 Subject: [PATCH] --- yaml --- r: 538 b: refs/heads/master c: 594ccc14dfe4d61b476491758425a1c2ca4ec71b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sctp/output.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index b14512ad31ea..2ea84a967d4a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5e6bc34f86e450ff14c4817902d66aa9c786bc06 +refs/heads/master: 594ccc14dfe4d61b476491758425a1c2ca4ec71b diff --git a/trunk/net/sctp/output.c b/trunk/net/sctp/output.c index 9013f64f5219..84b5b370b09d 100644 --- a/trunk/net/sctp/output.c +++ b/trunk/net/sctp/output.c @@ -313,12 +313,12 @@ int sctp_packet_transmit(struct sctp_packet *packet) sk = chunk->skb->sk; /* Allocate the new skb. */ - nskb = dev_alloc_skb(packet->size); + nskb = alloc_skb(packet->size + LL_MAX_HEADER, GFP_ATOMIC); if (!nskb) goto nomem; /* Make sure the outbound skb has enough header room reserved. */ - skb_reserve(nskb, packet->overhead); + skb_reserve(nskb, packet->overhead + LL_MAX_HEADER); /* Set the owning socket so that we know where to get the * destination IP address.