diff options
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 0b1ddb1005ac..783481860174 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -979,11 +979,10 @@ struct sctp_chunk *sctp_chunkify(struct sk_buff *skb, | |||
979 | { | 979 | { |
980 | struct sctp_chunk *retval; | 980 | struct sctp_chunk *retval; |
981 | 981 | ||
982 | retval = kmem_cache_alloc(sctp_chunk_cachep, GFP_ATOMIC); | 982 | retval = kmem_cache_zalloc(sctp_chunk_cachep, GFP_ATOMIC); |
983 | 983 | ||
984 | if (!retval) | 984 | if (!retval) |
985 | goto nodata; | 985 | goto nodata; |
986 | memset(retval, 0, sizeof(struct sctp_chunk)); | ||
987 | 986 | ||
988 | if (!sk) { | 987 | if (!sk) { |
989 | SCTP_DEBUG_PRINTK("chunkifying skb %p w/o an sk\n", skb); | 988 | SCTP_DEBUG_PRINTK("chunkifying skb %p w/o an sk\n", skb); |