Commit 0afc46c4 authored by Ralf Baechle's avatar Ralf Baechle Committed by David S. Miller

[DECNET]: Don't clear memory twice.

When dn_neigh.c was converted from kmalloc to kzalloc in commit
0da974f4 it was missed that
dn_neigh_seq_open was actually clearing the allocation twice was
missed.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 77681021
...@@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file) ...@@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file)
seq = file->private_data; seq = file->private_data;
seq->private = s; seq->private = s;
memset(s, 0, sizeof(*s));
out: out:
return rc; return rc;
out_kfree: out_kfree:
......
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