diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-11-09 02:02:19 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:21:36 -0500 |
commit | 0afc46c4683df512eef34a71a85065dc555c2af2 (patch) | |
tree | d5bf2d07b3dd8c1d86e23ae89d60a95df699976e /net | |
parent | 776810217ac558351cdcca01c4c6a9474e4a68c2 (diff) |
[DECNET]: Don't clear memory twice.
When dn_neigh.c was converted from kmalloc to kzalloc in commit
0da974f4f303a6842516b764507e3c0a03f41e5a 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>
Diffstat (limited to 'net')
-rw-r--r-- | net/decnet/dn_neigh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index ff0ebe99137d..7322bb36e825 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c | |||
@@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file) | |||
591 | 591 | ||
592 | seq = file->private_data; | 592 | seq = file->private_data; |
593 | seq->private = s; | 593 | seq->private = s; |
594 | memset(s, 0, sizeof(*s)); | ||
595 | out: | 594 | out: |
596 | return rc; | 595 | return rc; |
597 | out_kfree: | 596 | out_kfree: |