crypto: hisilicon/sec - fix the aead software fallback for engine
authorKai Ye <yekai13@huawei.com>
Sat, 19 Feb 2022 08:08:08 +0000 (16:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Feb 2022 03:28:33 +0000 (15:28 +1200)
commit0a2a464f863187f97e96ebc6384c052cafd4a54c
treeb5fdc5c591c2ed424d6f4365799e44e725e05015
parent1fb37b5692c915edcc2448a6b37255738c7c77e0
crypto: hisilicon/sec - fix the aead software fallback for engine

Due to the subreq pointer misuse the private context memory. The aead
soft crypto occasionally casues the OS panic as setting the 64K page.
Here is fix it.

Fixes: 6c46a3297bea ("crypto: hisilicon/sec - add fallback tfm...")
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c