]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: xilinx-trng - Fix return value of xtrng_hwrng_trng_read()
authorEric Biggers <ebiggers@kernel.org>
Sun, 31 May 2026 19:17:36 +0000 (12:17 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Jun 2026 06:03:13 +0000 (14:03 +0800)
commit2dd67774228930ccf6441e5628996021f410c4e0
tree49fa2aa6973f71504b97786548c18fc652386145
parent32b4d29280ed2a991dc196d5845b892acedc63b8
crypto: xilinx-trng - Fix return value of xtrng_hwrng_trng_read()

Implementations of hwrng::read are expected to return the number of
bytes generated.  Update xtrng_hwrng_trng_read() to match that.

Fixes: 8979744aca80 ("crypto: xilinx - Add TRNG driver for Versal")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/xilinx/xilinx-trng.c