From: Sridhar Samudrala Date: Thu, 28 Apr 2005 19:00:23 +0000 (-0700) Subject: [SCTP] Replace incorrect use of dev_alloc_skb with alloc_skb in sctp_packet_transmit(). X-Git-Tag: v2.6.12-rc4~188 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594ccc14dfe4d61b476491758425a1c2ca4ec71b;p=linux-2.6 [SCTP] Replace incorrect use of dev_alloc_skb with alloc_skb in sctp_packet_transmit(). Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- diff --git a/net/sctp/output.c b/net/sctp/output.c index 9013f64f52..84b5b370b0 100644 --- a/net/sctp/output.c +++ b/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.