Skip to content

Commit

Permalink
[SCTP] Replace incorrect use of dev_alloc_skb with alloc_skb in sctp_…
Browse files Browse the repository at this point in the history
…packet_transmit().

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sridhar Samudrala authored and David S. Miller committed Apr 28, 2005
1 parent 5e6bc34 commit 594ccc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sctp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 594ccc1

Please sign in to comment.