[SCTP] Replace incorrect use of dev_alloc_skb with alloc_skb in sctp_packet_transmit().
authorSridhar Samudrala <sri@us.ibm.com>
Thu, 28 Apr 2005 19:00:23 +0000 (12:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2005 19:00:23 +0000 (12:00 -0700)
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c

index 9013f64f5219760917af8337e390f81323102b34..84b5b370b09d7b0025152062643284160d80e107 100644 (file)
@@ -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.