sctp: really allow using GFP_KERNEL on sctp_packet_transmit
Subsystems (3)
Marcelo Ricardo Leitner
maintainerPATCH 1/1 sctp: really allow using GFP_KERNEL on sctp_packet_transmit
Somehow my patch for commit cea8768f333e ("sctp: allow sctp_transmit_packet and others to use gfp") missed two important chunks, which are now added.
Fixes cea8768f333e ("sctp: allow sctp_transmit_packet and others to use gfp")
Signed-off-by Marcelo Ricardo Leitner <[email protected]>
--- net/sctp/output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
net/sctp/output.c +3 -3
@@ -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;
@@ -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
Signature · 1 line
2.5.0
Quoted 42 lines · Marcelo Ricardo Leitner
Somehow my patch for commit
cea8768f333e("sctp: allowsctp_transmit_packetand others to use gfp") missed two important chunks, which are now added.Fixes cea8768f333e ("sctp: allow sctp_transmit_packet and others to use gfp")Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/sctp/output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)net/sctp/output.c +3
-3@@ -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;@@ -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 Signature · 6 lines
2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Acked-by Neil Horman <[email protected]>
From: Marcelo Ricardo Leitner <[email protected]>
Date: Tue, 29 Mar 2016 10:41:03 -0300
Quoted 6 lines
Somehow my patch for commit
cea8768f333e("sctp: allowsctp_transmit_packetand others to use gfp") missed two important chunks, which are now added.Fixes cea8768f333e ("sctp: allow sctp_transmit_packet and others to use gfp")Signed-off-by Marcelo Ricardo Leitner <[email protected]>
Applied.