From 666f929ef675dee24922f73c2cd4f84dda29e166 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Mon, 14 Oct 2013 11:05:15 +0000 Subject: [PATCH] madwifi: Fix removal of proc entries Signed-off-by: Vasilis Tsiligiannis SVN-Revision: 38391 --- net/madwifi/patches/481-fix_proc.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/madwifi/patches/481-fix_proc.patch b/net/madwifi/patches/481-fix_proc.patch index d8f6f94ae..61994a53f 100644 --- a/net/madwifi/patches/481-fix_proc.patch +++ b/net/madwifi/patches/481-fix_proc.patch @@ -52,7 +52,7 @@ while (tmp) { if (tmp->entry) { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(vap->iv_proc); ++ proc_remove(tmp->entry); +#else remove_proc_entry(tmp->name, vap->iv_proc); +#endif @@ -61,13 +61,13 @@ tmp = tmp->next; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(proc_madwifi); ++ proc_remove(vap->iv_proc); +#else remove_proc_entry(vap->iv_proc->name, proc_madwifi); +#endif if (proc_madwifi_count == 1) { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(proc_net); ++ proc_remove(proc_madwifi); +#else remove_proc_entry("madwifi", proc_net); +#endif -- 2.30.2