]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: imx-rngc - Moving IRQ handler registering after imx_rngc_irq_mask_clear()
authorKshitiz Varshney <kshitiz.varshney@nxp.com>
Mon, 22 Aug 2022 11:19:03 +0000 (13:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Sep 2022 10:37:23 +0000 (18:37 +0800)
commita2667dadb65df475b4df9aaef64c28daca7c26a8
tree94cbce07506fb28a2f8a881a599a76b18f83d191
parent66c9082d2751153d968fba8de77b38653ec5ab92
hwrng: imx-rngc - Moving IRQ handler registering after imx_rngc_irq_mask_clear()

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: 6acc3d17757c (hwrng: mx-rngc - add a driver for Freescale RNGC)
Signed-off-by: Kshitiz Varshney <kshitiz.varshney@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/imx-rngc.c