From: Ralf Baechle Date: Thu, 9 Nov 2006 07:02:19 +0000 (-0800) Subject: [DECNET]: Don't clear memory twice. X-Git-Tag: v2.6.20-rc1~34^2~40^2~432 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0afc46c4683df512eef34a71a85065dc555c2af2;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index ff0ebe9913..7322bb36e8 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) seq = file->private_data; seq->private = s; - memset(s, 0, sizeof(*s)); out: return rc; out_kfree: