Skip to contentSkip to conversation

Fix leaking of kernel heap addresses in net/

PATCH In review Dan Rosenberg 1 participant 1 message Nov 12, 2010

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

PATCH 1/10 Fix leaking of kernel heap addresses in net/

net/atm/proc.c +1 -1
index f85da07..21ec2ba 100644
@@ -191,7 +191,7 @@ static void vcc_info(struct seq_file *seq, struct atm_vcc *vcc)
 {
 	struct sock *sk = sk_atm(vcc);
 
-	seq_printf(seq, "%p ", vcc);
+	seq_printf(seq, "%lu ", sock_i_ino(sk));
 	if (!vcc->dev)
 		seq_printf(seq, "Unassigned    ");
 	else