Re: [PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

2020-08-21 Thread Herbert Xu
On Tue, Aug 11, 2020 at 06:00:24PM +0530, madhuparnabhowmi...@gmail.com wrote: > From: Madhuparna Bhowmik > > engine->stat_irq_thresh was initialized after device_create_file() in > the probe function, the initialization may race with call to > spacc_stat_irq_thresh_store() which updates engine->

Re: [PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

2020-08-13 Thread Jamie Iles
On Tue, Aug 11, 2020 at 06:00:24PM +0530, madhuparnabhowmi...@gmail.com wrote: > From: Madhuparna Bhowmik > > engine->stat_irq_thresh was initialized after device_create_file() in > the probe function, the initialization may race with call to > spacc_stat_irq_thresh_store() which updates engine->

[PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

2020-08-11 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik engine->stat_irq_thresh was initialized after device_create_file() in the probe function, the initialization may race with call to spacc_stat_irq_thresh_store() which updates engine->stat_irq_thresh, therefore initialize it before creating the file in probe function. Fou