1
0
Fork 0

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>
hifive-unleashed-5.1
Viresh Kumar 2014-11-14 17:25:00 +05:30 committed by Greg Kroah-Hartman
parent 95bd99def5
commit 837b3b7c04
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}