From: Wei Yongjun Date: Fri, 20 Dec 2013 03:05:16 +0000 (+0800) Subject: staging: sep: add missing destroy_workqueue() in sep_crypto.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7c7eb03fd370b33ba9c93766df2af61551c4310;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sep/sep_crypto.c b/drivers/staging/sep/sep_crypto.c index cb3e63b7c319..7fc267550c65 100644 --- a/drivers/staging/sep/sep_crypto.c +++ b/drivers/staging/sep/sep_crypto.c @@ -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); }