diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2014-02-12 23:38:17 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-13 20:58:12 +0100 |
commit | 4885c8731a34eecf509822e089ce17bcd9bd4650 (patch) | |
tree | e500eed19ac2225ca3138e0ab5eae404c703ae79 /drivers/net | |
parent | rtl8187: fix regression on MIPS without coherent DMA (diff) | |
download | linux-4885c8731a34eecf509822e089ce17bcd9bd4650.tar.xz linux-4885c8731a34eecf509822e089ce17bcd9bd4650.zip |
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')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_proc.c | 2 |
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); } |