Skip to content
Commit 7149d380 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Correct error return value in mrccache_get_region()



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: 87f1084a ("x86: Adjust mrccache_get_region() to use livetree")

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent d16e18ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment