
3 Feb
2020
3 Feb
'20
1:44 a.m.
On Mon, Feb 3, 2020 at 4:37 AM Simon Glass sjg@chromium.org wrote:
This function doesn't use uclass_find_first_device() correctly. Add a check that the device is found so we don't try to read properties from a NULL device.
The fixes booting on minnoxmax.
Fixes: 87f1084a630 ("x86: Adjust mrccache_get_region() to use livetree")
Signed-off-by: Simon Glass sjg@chromium.org
arch/x86/lib/mrccache.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com