Commit cd1da72d authored by Kshitiz Varshney's avatar Kshitiz Varshney Committed by Jialin Zhang
Browse files

hwrng: imx-rngc - Moving IRQ handler registering after imx_rngc_irq_mask_clear()

stable inclusion
from stable-v5.10.150
commit ab2485eb5dfab4519a6551611a1dbd12d17b518d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ab2485eb5dfab4519a6551611a1dbd12d17b518d



--------------------------------

[ Upstream commit 10a2199c ]

Issue:
While servicing interrupt, if the IRQ happens to be because of a SEED_DONE
due to a previous boot stage, you end up completing the completion
prematurely, hence causing kernel to crash while booting.

Fix:
Moving IRQ handler registering after imx_rngc_irq_mask_clear()

Fixes: 1d544944 (hwrng: mx-rngc - add a driver for Freescale RNGC)
Signed-off-by: default avatarKshitiz Varshney <kshitiz.varshney@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent b118e939
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment