Re: [PATCH] hwrng: ba431 - fix reported byte count

From: Herbert Xu

Date: Fri Oct 02 2026 - 06:13:37 EST


On Thu, Sep 24, 2026 at 11:33:59AM +0200, Thorsten Blum wrote:
> Use the size of the buffer element instead of the pointer size to report
> the number of bytes read. Since data is a u32 pointer and sizeof(data)
> is 8 bytes on 64-bit systems, using the pointer size reports twice the
> number of bytes actually read.
>
> Fixes: 0289e9be5dc2 ("hwrng: ba431 - add support for BA431 hwrng")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
> ---
> drivers/char/hw_random/ba431-rng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt