[PATCH] lib: uuid: fix the test on RNG device presence

Tom Rini trini at konsulko.com
Wed Oct 27 00:41:58 CEST 2021


On Fri, Oct 22, 2021 at 05:05:47PM +0200, Patrick Delaunay wrote:

> Correct the test on RNG device presence,when ret is equal to 0,
> before to call dm_rng_read function.
> 
> Without this patch the RNG device is not used when present (when ret == 0)
> or a data abort occurs in dm_rng_read when CONFIG_DM_RNG is activated but
> the RNG device is not present in device tree (ret != 0 and devp = NULL).
> 
> Fixes: 92fdad28cfdf ("lib: uuid: use RNG device if present")
> CC: Matthias Brugger <mbrugger at suse.com>
> CC: Torsten Duwe <duwe at suse.de>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211026/489a6b67/attachment.sig>


More information about the U-Boot mailing list