sctp: really allow using GFP_KERNEL on sctp_packet_transmit
Somehow my patch for commitcea8768f33
("sctp: allow sctp_transmit_packet and others to use gfp") missed two important chunks, which are now added. Fixes:cea8768f33
("sctp: allow sctp_transmit_packet and others to use gfp") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-By: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
5e263f7126
Коммит
28fd34985b
|
@ -401,7 +401,7 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
|
||||||
sk = chunk->skb->sk;
|
sk = chunk->skb->sk;
|
||||||
|
|
||||||
/* Allocate the new skb. */
|
/* Allocate the new skb. */
|
||||||
nskb = alloc_skb(packet->size + MAX_HEADER, GFP_ATOMIC);
|
nskb = alloc_skb(packet->size + MAX_HEADER, gfp);
|
||||||
if (!nskb)
|
if (!nskb)
|
||||||
goto nomem;
|
goto nomem;
|
||||||
|
|
||||||
|
@ -524,7 +524,7 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
|
||||||
if (auth)
|
if (auth)
|
||||||
sctp_auth_calculate_hmac(asoc, nskb,
|
sctp_auth_calculate_hmac(asoc, nskb,
|
||||||
(struct sctp_auth_chunk *)auth,
|
(struct sctp_auth_chunk *)auth,
|
||||||
GFP_ATOMIC);
|
gfp);
|
||||||
|
|
||||||
/* 2) Calculate the Adler-32 checksum of the whole packet,
|
/* 2) Calculate the Adler-32 checksum of the whole packet,
|
||||||
* including the SCTP common header and all the
|
* including the SCTP common header and all the
|
||||||
|
|
Загрузка…
Ссылка в новой задаче