Re: [PATCH] of/fdt: Check dtb pointer first in unflatten_device_tree

2021-03-25 Thread Rob Herring
On Thu, Mar 25, 2021 at 10:00 AM Changbin Du wrote: > > On Wed, Mar 24, 2021 at 10:52:30AM -0600, Rob Herring wrote: > > On Wed, Mar 24, 2021 at 9:04 AM Changbin Du wrote: > > > > > > The setup_arch() would invoke unflatten_device_tree() even no > > > valid fdt found. So we'd better check it

Re: [PATCH] of/fdt: Check dtb pointer first in unflatten_device_tree

2021-03-25 Thread Changbin Du
On Wed, Mar 24, 2021 at 10:52:30AM -0600, Rob Herring wrote: > On Wed, Mar 24, 2021 at 9:04 AM Changbin Du wrote: > > > > The setup_arch() would invoke unflatten_device_tree() even no > > valid fdt found. So we'd better check it first and return early. > > > > Signed-off-by: Changbin Du > > ---

Re: [PATCH] of/fdt: Check dtb pointer first in unflatten_device_tree

2021-03-24 Thread Rob Herring
On Wed, Mar 24, 2021 at 9:04 AM Changbin Du wrote: > > The setup_arch() would invoke unflatten_device_tree() even no > valid fdt found. So we'd better check it first and return early. > > Signed-off-by: Changbin Du > --- > drivers/of/fdt.c | 5 + > 1 file changed, 5 insertions(+) > > diff

[PATCH] of/fdt: Check dtb pointer first in unflatten_device_tree

2021-03-24 Thread Changbin Du
The setup_arch() would invoke unflatten_device_tree() even no valid fdt found. So we'd better check it first and return early. Signed-off-by: Changbin Du --- drivers/of/fdt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index