Commit 042b4b16 authored by James Cowgill's avatar James Cowgill Committed by Herbert Xu
Browse files

hwrng: arm-smccc-trng - fix NO_ENTROPY handling

The SMCCC_RET_TRNG_NO_ENTROPY switch arm is never used because the
NO_ENTROPY return value is negative and negative values are handled
above the switch by immediately returning.

Fix by handling errors using a default arm in the switch.

Fixes: 0888d04b

 ("hwrng: Add Arm SMCCC TRNG based driver")
Signed-off-by: default avatarJames Cowgill <james.cowgill@blaize.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 882aa652
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment