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

greybus: operation: free resources in the reverse order of allocation

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 95bd99de
...@@ -493,8 +493,8 @@ int gb_operation_init(void) ...@@ -493,8 +493,8 @@ int gb_operation_init(void)
void gb_operation_exit(void) void gb_operation_exit(void)
{ {
kmem_cache_destroy(gb_operation_cache);
gb_operation_cache = NULL;
destroy_workqueue(gb_operation_recv_workqueue); destroy_workqueue(gb_operation_recv_workqueue);
gb_operation_recv_workqueue = NULL; gb_operation_recv_workqueue = NULL;
kmem_cache_destroy(gb_operation_cache);
gb_operation_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