Skip to content

Commit

Permalink
18xx: fix debugfs bug
Browse files Browse the repository at this point in the history
caused an oops from time to time
  • Loading branch information
ariknem committed Oct 28, 2011
1 parent 0c39c92 commit 0ac2a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/wl12xx/debugfs.c
Expand Up @@ -1405,12 +1405,14 @@ int wlcore_debugfs_init(struct wl1271 *wl)
void wlcore_debugfs_exit(struct wl1271 *wl)
{
if (wl->conf.platform_type == 1) {
debugfs_remove_recursive(wl->debugfs_rootdir);
if (wl->debugfs_rootdir)
debugfs_remove_recursive(wl->debugfs_rootdir);
wl->debugfs_rootdir = NULL;
kfree(wl->stats.wl12xx);
wl->stats.wl12xx = NULL;
} else {
debugfs_remove_recursive(wl->debugfs_rootdir);
if (wl->debugfs_rootdir)
debugfs_remove_recursive(wl->debugfs_rootdir);
wl->debugfs_rootdir = NULL;
kfree(wl->stats.wl18xx);
wl->stats.wl18xx = NULL;
Expand Down

0 comments on commit 0ac2a4f

Please sign in to comment.