Re: [PATCH] x86: Correct error return value in mrccache_get_region()

2020-02-20 Thread Bin Meng
On Mon, Feb 3, 2020 at 8:44 AM Bin Meng wrote: > > On Mon, Feb 3, 2020 at 4:37 AM Simon Glass 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 bootin

Re: [PATCH] x86: Correct error return value in mrccache_get_region()

2020-02-02 Thread Bin Meng
On Mon, Feb 3, 2020 at 4:37 AM Simon Glass 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_ge

[PATCH] x86: Correct error return value in mrccache_get_region()

2020-02-02 Thread Simon Glass
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 --- a