summaryrefslogtreecommitdiff
path: root/crypto/crypto_user_base.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2019-04-12 17:14:15 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-18 22:15:04 +0800
commit7345cfedab6b1d5955f3ed235952cde11d7f4947 (patch)
tree18f2ae60f836ab0a1090e21ac838b7b121dd0024 /crypto/crypto_user_base.c
parent23311b0ed61a57d041659fce60a1a1def2b0a317 (diff)
downloadlinux-crypto-7345cfedab6b1d5955f3ed235952cde11d7f4947.tar.gz
linux-crypto-7345cfedab6b1d5955f3ed235952cde11d7f4947.zip
crypto: scompress - initialize per-CPU variables on each CPU
In commit 6d20adda638c1 ("crypto: scompress - Use per-CPU struct instead multiple variables") I accidentally initialized multiple times the memory on a random CPU. I should have initialize the memory on every CPU like it has been done earlier. I didn't notice this because the scheduler didn't move the task to another CPU. Guenter managed to do that and the code crashed as expected. Allocate / free per-CPU memory on each CPU. Fixes: 6d20adda638c1 ("crypto: scompress - Use per-CPU struct instead multiple variables") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_user_base.c')
0 files changed, 0 insertions, 0 deletions