From 39dd928d212737c6b5c7e42ed71a0c699c0faf11 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 26 Jul 2007 17:11:51 +0000 Subject: 2007-07-26 Martin Hunt Spotted by Ming Chang. * procfs.c (_stp_register_ctl_channel): Fix iterator when removing proc entries when an error occurs. --- runtime/transport/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/transport/procfs.c') diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index c6e3f46a..36920707 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -406,7 +406,7 @@ err1: for_each_cpu(j) { if (j == i) break; - sprintf(buf, "%d", i); + sprintf(buf, "%d", j); remove_proc_entry (buf, _stp_proc_mod); } -- cgit