summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/hostap
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2014-02-13 02:38:17 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-02-13 23:58:12 +0400
commit4885c8731a34eecf509822e089ce17bcd9bd4650 (patch)
treee500eed19ac2225ca3138e0ab5eae404c703ae79 /drivers/net/wireless/hostap
parentb6213e413a4e0c66548153516b074df14f9d08e0 (diff)
downloadlinux-4885c8731a34eecf509822e089ce17bcd9bd4650.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r--drivers/net/wireless/hostap/hostap_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_proc.c b/drivers/net/wireless/hostap/hostap_proc.c
index aa7ad3a7a69b..4e5c0f8c9496 100644
--- a/drivers/net/wireless/hostap/hostap_proc.c
+++ b/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)
{
- remove_proc_subtree(local->ddev->name, hostap_proc);
+ proc_remove(local->proc);
}