X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fsctp%2Fsm_make_chunk.c;h=f7fb29d5a0c728ea83cad16b54bfe6671b06d81d;hb=cb18eccff48ef3986d1072964590bce6fec705fb;hp=b97511655649b7078cf7877f1220d158119d96e9;hpb=5ef213f6842277ee1df5659f59fac0ffc9beb411;p=powerpc.git diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index b975116556..f7fb29d5a0 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, { struct sctp_chunk *retval; - retval = kmem_cache_alloc(sctp_chunk_cachep, GFP_ATOMIC); + retval = kmem_cache_zalloc(sctp_chunk_cachep, GFP_ATOMIC); if (!retval) goto nodata; - memset(retval, 0, sizeof(struct sctp_chunk)); if (!sk) { SCTP_DEBUG_PRINTK("chunkifying skb %p w/o an sk\n", skb);