Browse Source

hostap: fix "hostap: proc: Use remove_proc_subtree()"

remove_proc_subtree() doesn't work here as local->ddev has already
been removed, and NULLed out.  Use proc_remove() instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Russell King - ARM Linux 11 years ago
parent
commit
4885c8731a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/hostap/hostap_proc.c

+ 1 - 1
drivers/net/wireless/hostap/hostap_proc.c

@@ -496,7 +496,7 @@ void hostap_init_proc(local_info_t *local)
 
 
 void hostap_remove_proc(local_info_t *local)
 void hostap_remove_proc(local_info_t *local)
 {
 {
-	remove_proc_subtree(local->ddev->name, hostap_proc);
+	proc_remove(local->proc);
 }
 }