Message ID | 20200305205824.4371-2-martin@kaiser.cx (mailing list archive) |
---|---|
State | Mainlined |
Commit | 47a1f8e8b3637ff5f7806587883d7d94068d9ee8 |
Headers | show |
Series | [v2,1/5] hwrng: imx-rngc - fix an error path | expand |
diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 30cf00f8e9a0..0576801944fd 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -105,8 +105,10 @@ static int imx_rngc_self_test(struct imx_rngc *rngc) return -ETIMEDOUT; } - if (rngc->err_reg != 0) + if (rngc->err_reg != 0) { + imx_rngc_irq_mask_clear(rngc); return -EIO; + } return 0; }