Skip to content

Commit

Permalink
[DECNET]: Don't clear memory twice.
Browse files Browse the repository at this point in the history
When dn_neigh.c was converted from kmalloc to kzalloc in commit
0da974f it was missed that
dn_neigh_seq_open was actually clearing the allocation twice was
missed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ralf Baechle authored and David S. Miller committed Dec 3, 2006
1 parent 7768102 commit 0afc46c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/decnet/dn_neigh.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file)

seq = file->private_data;
seq->private = s;
memset(s, 0, sizeof(*s));
out:
return rc;
out_kfree:
Expand Down

0 comments on commit 0afc46c

Please sign in to comment.