Skip to content

Commit

Permalink
hostap: fix "hostap: proc: Use remove_proc_subtree()"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King - ARM Linux authored and John W. Linville committed Feb 13, 2014
1 parent b6213e4 commit 4885c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/hostap/hostap_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 4885c87

Please sign in to comment.