commit | 92f9828ba8c64ba135c2a528403e4a9abb7d0188 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Feb 02 13:37:06 2020 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Thu Mar 05 18:19:04 2020 +0800 |
tree | c4c25136b7bd53d77e81d0317bdac57b2aebc41f | |
parent | 1b56e924b03a996928c21ca2189468d03a15a947 [diff] |
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: 87f1084a630 ("x86: Adjust mrccache_get_region() to use livetree") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>