]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: scompress - initialize per-CPU variables on each CPU
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 12 Apr 2019 15:14:15 +0000 (17:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:04 +0000 (22:15 +0800)
commit037d4c495787bef8fe85bef4edbcc7345ff6a489
tree0a5d1f50aefb7ab51f2a6800e29d94e7b5a01702
parent81795a4eb015e238a7b2e079fb9229408f4e9235
crypto: scompress - initialize per-CPU variables on each CPU

In commit 2aa07ca774457 ("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: 2aa07ca774457 ("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>
crypto/scompress.c