diff options
author | Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com> | 2020-08-11 14:30:24 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-08-21 06:47:50 +0200 |
commit | 64f4a62e3b17f1e473f971127c2924cae42afc82 (patch) | |
tree | 03db6834bad7fda6911c38bcda706e8aafb91b76 /drivers/crypto/virtio | |
parent | crypto: hash - Remove unused async iterators (diff) | |
download | linux-64f4a62e3b17f1e473f971127c2924cae42afc82.tar.xz linux-64f4a62e3b17f1e473f971127c2924cae42afc82.zip |
crypto: picoxcell - Fix potential race condition bug
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.
Found by Linux Driver Verification project (linuxtesting.org).
Fixes: ce92136843cb ("crypto: picoxcell - add support for the...")
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/virtio')
0 files changed, 0 insertions, 0 deletions