Commit f66832da authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: nullify dangling pointers

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 837b3b7c
......@@ -367,6 +367,7 @@ int gb_ap_init(void)
void gb_ap_exit(void)
{
destroy_workqueue(ap_workqueue);
ap_workqueue = NULL;
}
......@@ -26,4 +26,5 @@ int gb_debugfs_init(void)
void gb_debugfs_cleanup(void)
{
debugfs_remove_recursive(gb_debug_root);
gb_debug_root = NULL;
}
......@@ -136,4 +136,5 @@ int gb_gbuf_init(void)
void gb_gbuf_exit(void)
{
kmem_cache_destroy(gbuf_head_cache);
gbuf_head_cache = NULL;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment