aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/sm_make_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 2b1129a7a94a..93df833f34f4 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -1128,7 +1128,7 @@ void *sctp_addto_chunk(struct sctp_chunk *chunk, int len, const void *data)
1128 void *target; 1128 void *target;
1129 void *padding; 1129 void *padding;
1130 int chunklen = ntohs(chunk->chunk_hdr->length); 1130 int chunklen = ntohs(chunk->chunk_hdr->length);
1131 int padlen = chunklen % 4; 1131 int padlen = WORD_ROUND(chunklen) - chunklen;
1132 1132
1133 padding = skb_put(chunk->skb, padlen); 1133 padding = skb_put(chunk->skb, padlen);
1134 target = skb_put(chunk->skb, len); 1134 target = skb_put(chunk->skb, len);