From patchwork Tue Feb 24 10:52:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5386 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.14.3/8.13.4/Debian-3sarge3) with SMTP id n1OAukYl000436 for ; Tue, 24 Feb 2009 10:56:47 GMT Received: (qmail invoked by alias); 24 Feb 2009 10:52:56 -0000 Received: from unknown (EHLO localhost) [89.246.212.130] by mail.gmx.net (mp069) with SMTP; 24 Feb 2009 11:52:56 +0100 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX18foXA8By0fVTpL2u8NgzSD8+qLnu6ssnoepZ2AOq UTYPMCpKQk5SO2 From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Date: Tue, 24 Feb 2009 11:52:40 +0100 Message-Id: <1235472760-8775-1-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.6.1.3 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 Subject: [B.A.T.M.A.N.] [PATCH] Fix deletion of aggregate_ogm in /proc/net/batman-adv X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2009 10:56:47 -0000 remove_proc_entry needs as second parameter the parent directory and not the proc_dir_entry of the file to delete. Otherwise nothing will be removed the deletion of /proc/net/batman-adv will fail because it still has child nodes. Signed-off-by: Sven Eckelmann --- batman-adv-kernelland/proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batman-adv-kernelland/proc.c b/batman-adv-kernelland/proc.c index 6c475d4..00e177a 100644 --- a/batman-adv-kernelland/proc.c +++ b/batman-adv-kernelland/proc.c @@ -134,7 +134,7 @@ void cleanup_procfs(void) remove_proc_entry(PROC_FILE_VIS, proc_batman_dir); if (proc_aggr_file) - remove_proc_entry(PROC_FILE_AGGR, proc_aggr_file); + remove_proc_entry(PROC_FILE_AGGR, proc_batman_dir); if (proc_batman_dir) #ifdef __NET_NET_NAMESPACE_H