|
@@ -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
|