Re: [PATCH v2] crypto: atmel - Avoid flush_scheduled_work() usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 30, 2022 at 04:01:46PM +0900, Tetsuo Handa wrote:
> Flushing system-wide workqueues is dangerous and will be forbidden.
> Replace system_wq with local atmel_wq.
> 
> If CONFIG_CRYPTO_DEV_ATMEL_{I2C,ECC,SHA204A}=y, the ordering in Makefile
> guarantees that module_init() for atmel-i2c runs before module_init()
> for atmel-ecc and atmel-sha204a runs.
> 
> Link: https://lkml.kernel.org/r/49925af7-78a8-a3dd-bce6-cfc02e1a9236@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
> ---
> Changes in v2:
>   Add a comment for built-in case to Makefile, suggested by Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> 
>  drivers/crypto/Makefile        |  1 +
>  drivers/crypto/atmel-ecc.c     |  2 +-
>  drivers/crypto/atmel-i2c.c     | 24 +++++++++++++++++++++++-
>  drivers/crypto/atmel-i2c.h     |  1 +
>  drivers/crypto/atmel-sha204a.c |  2 +-
>  5 files changed, 27 insertions(+), 3 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux