Files
uboot-st/lib
Patrick Delaunay 205d9b5c68 lib: uuid: fix the test on RNG device presence
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).

[backport of commit 70a9f4d25b ("lib: uuid: fix the test on RNG device presence")]

Fixes: 92fdad28cf ("lib: uuid: use RNG device if present")
CC: Matthias Brugger <mbrugger@suse.com>
CC: Torsten Duwe <duwe@suse.de>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Change-Id: I98a420a5666428a3c4737db51d3f9c31d64c66b5
2022-05-19 09:21:13 +02:00
..
2021-01-16 19:17:11 -05:00
2021-03-07 17:37:13 +01:00
2021-09-13 18:23:13 -04:00
2020-10-30 10:56:11 -04:00
2021-09-14 09:07:18 -04:00
2021-06-07 10:48:40 -04:00
2021-04-20 07:31:12 -04:00
2021-07-14 16:57:35 -04:00
2020-08-24 14:11:31 -04:00
2021-03-02 15:53:37 -05:00
2021-07-15 18:42:05 -04:00