Skip to contentSkip to conversation

Don't clear memory twice.

DECnet Applied Ralf Baechle 2 participants 2 messages Nov 8, 2006 – Nov 9, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

net/decnet/dn_neigh.c +0 -1
index ff0ebe9..7322bb3 100644
@@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inod
 
 	seq          = file->private_data;
 	seq->private = s;
-	memset(s, 0, sizeof(*s));
 out:
 	return rc;
 out_kfree:
maintainer Applied
#1 lore raw

From: Ralf Baechle <[email protected]>
Date: Wed, 8 Nov 2006 15:45:07 +0000

Quoted 6 lines

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.

Applied, thanks a lot Ralf.