mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
greybus: operation: free resources in the reverse order of allocation
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
95bd99def5
commit
837b3b7c04
@@ -493,8 +493,8 @@ int gb_operation_init(void)
|
||||
|
||||
void gb_operation_exit(void)
|
||||
{
|
||||
kmem_cache_destroy(gb_operation_cache);
|
||||
gb_operation_cache = NULL;
|
||||
destroy_workqueue(gb_operation_recv_workqueue);
|
||||
gb_operation_recv_workqueue = NULL;
|
||||
kmem_cache_destroy(gb_operation_cache);
|
||||
gb_operation_cache = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user