summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/debugfs.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-11-14 17:25:01 +0530
committerGreg Kroah-Hartman <greg@kroah.com>2014-11-14 13:32:27 -0800
commitf66832dae0ad61732d07c40a3c81adbc935fa1b3 (patch)
tree8f28653270d003c49da859b53c4af75e24273afb /drivers/staging/greybus/debugfs.c
parent837b3b7c04c1df9dbf5e8dc4b15aaa28e7b6439b (diff)
greybus: nullify dangling pointers
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/debugfs.c')
-rw-r--r--drivers/staging/greybus/debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/debugfs.c b/drivers/staging/greybus/debugfs.c
index ef292f43db45..4755a36d0522 100644
--- a/drivers/staging/greybus/debugfs.c
+++ b/drivers/staging/greybus/debugfs.c
@@ -26,4 +26,5 @@ int gb_debugfs_init(void)
void gb_debugfs_cleanup(void)
{
debugfs_remove_recursive(gb_debug_root);
+ gb_debug_root = NULL;
}