X-Git-Url: http://git.agner.ch/gitweb/?p=linux-drm-fsl-dcu.git;a=blobdiff_plain;f=net%2Fcore%2Fdst.c;h=61dd9d3951f1017697fe223a988e876466c5194d;hp=0ab9a981fc6d84a1ac28f1f72f975f500f6bf304;hb=cb18eccff48ef3986d1072964590bce6fec705fb;hpb=5ef213f6842277ee1df5659f59fac0ffc9beb411 diff --git a/net/core/dst.c b/net/core/dst.c index 0ab9a981fc6d..61dd9d3951f1 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -132,10 +132,9 @@ void * dst_alloc(struct dst_ops * ops) if (ops->gc()) return NULL; } - dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); + dst = kmem_cache_zalloc(ops->kmem_cachep, GFP_ATOMIC); if (!dst) return NULL; - memset(dst, 0, ops->entry_size); atomic_set(&dst->__refcnt, 0); dst->ops = ops; dst->lastuse = jiffies;