Don't clear memory twice.
Subsystems (2)
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 <[email protected]>
net/decnet/dn_neigh.c +0 -1
@@ -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:
From: Ralf Baechle <[email protected]>
Date: Wed, 8 Nov 2006 15:45:07 +0000
Quoted 6 lines
When
dn_neigh.cwas converted from kmalloc to kzalloc in commit0da974f4f303a6842516b764507e3c0a03f41e5ait was missed thatdn_neigh_seq_openwas actually clearing the allocation twice was missed.Signed-off-by Ralf Baechle <[email protected]>
Applied, thanks a lot Ralf.