mirror of
https://github.com/torvalds/linux.git
synced 2024-09-29 19:33:13 +00:00
greybus: nullify dangling pointers
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
837b3b7c04
commit
f66832dae0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user