diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2014-02-12 22:38:17 +0000 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-13 14:58:12 -0500 |
commit | 4885c8731a34eecf509822e089ce17bcd9bd4650 (patch) | |
tree | e500eed19ac2225ca3138e0ab5eae404c703ae79 | |
parent | b6213e413a4e0c66548153516b074df14f9d08e0 (diff) | |
download | talos-obmc-linux-4885c8731a34eecf509822e089ce17bcd9bd4650.tar.gz talos-obmc-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>
-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); } |