Commit 334cf36a authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[NET]: In dst_alloc, do not assume layout of atomic_t.

parent 9aae1aa6
......@@ -123,6 +123,7 @@ void * dst_alloc(struct dst_ops * ops)
if (!dst)
return NULL;
memset(dst, 0, ops->entry_size);
atomic_set(&dst->__refcnt, 0);
dst->ops = ops;
dst->lastuse = jiffies;
dst->path = dst;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment