Skip to content

Commit

Permalink
sctp: really allow using GFP_KERNEL on sctp_packet_transmit
Browse files Browse the repository at this point in the history
Somehow my patch for commit cea8768 ("sctp: allow
sctp_transmit_packet and others to use gfp") missed two important
chunks, which are now added.

Fixes: cea8768 ("sctp: allow sctp_transmit_packet and others to use gfp")
Signed-off-by: Marcelo Ricardo Leitner <[email protected]>
Acked-By: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
marceloleitner authored and davem330 committed Mar 30, 2016
1 parent 5e263f7 commit 28fd349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/sctp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
sk = chunk->skb->sk;

/* Allocate the new skb. */
nskb = alloc_skb(packet->size + MAX_HEADER, GFP_ATOMIC);
nskb = alloc_skb(packet->size + MAX_HEADER, gfp);
if (!nskb)
goto nomem;

Expand Down Expand Up @@ -523,8 +523,8 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
*/
if (auth)
sctp_auth_calculate_hmac(asoc, nskb,
(struct sctp_auth_chunk *)auth,
GFP_ATOMIC);
(struct sctp_auth_chunk *)auth,
gfp);

/* 2) Calculate the Adler-32 checksum of the whole packet,
* including the SCTP common header and all the
Expand Down

0 comments on commit 28fd349

Please sign in to comment.