mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
staging: sep: add missing destroy_workqueue() in sep_crypto.c
Add the missing destroy_workqueue() before return from sep_crypto_setup() and sep_crypto_takedown(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b751bc77be
commit
a7c7eb03fd
@ -3926,6 +3926,7 @@ int sep_crypto_setup(void)
|
||||
err_algs:
|
||||
for (k = 0; k < i; k++)
|
||||
crypto_unregister_ahash(&hash_algs[k]);
|
||||
destroy_workqueue(sep_dev->workqueue);
|
||||
return err;
|
||||
|
||||
err_crypto_algs:
|
||||
@ -3944,6 +3945,7 @@ void sep_crypto_takedown(void)
|
||||
for (i = 0; i < ARRAY_SIZE(crypto_algs); i++)
|
||||
crypto_unregister_alg(&crypto_algs[i]);
|
||||
|
||||
destroy_workqueue(sep_dev->workqueue);
|
||||
tasklet_kill(&sep_dev->finish_tasklet);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user