projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-drm-fsl-dcu.git]
/
net
/
core
/
dst.c
diff --git
a/net/core/dst.c
b/net/core/dst.c
index 0ab9a981fc6d84a1ac28f1f72f975f500f6bf304..61dd9d3951f1017697fe223a988e876466c5194d 100644
(file)
--- 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;
}
if (ops->gc())
return NULL;
}
- dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC);
+ dst = kmem_cache_
z
alloc(ops->kmem_cachep, GFP_ATOMIC);
if (!dst)
return NULL;
if (!dst)
return NULL;
- memset(dst, 0, ops->entry_size);
atomic_set(&dst->__refcnt, 0);
dst->ops = ops;
dst->lastuse = jiffies;
atomic_set(&dst->__refcnt, 0);
dst->ops = ops;
dst->lastuse = jiffies;