Re: [PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Richard Weinberger
Am 12.08.2014 17:04, schrieb Vivek Goyal: > On Tue, Aug 12, 2014 at 04:49:35PM +0200, Richard Weinberger wrote: >> Am 12.08.2014 16:46, schrieb Vivek Goyal: >>> Richard and Daniel reported that UML is broken due to changes to resource >>> traversal functions. Problem is that iomem_resource.child ca

Re: [PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Vivek Goyal
On Tue, Aug 12, 2014 at 04:49:35PM +0200, Richard Weinberger wrote: > Am 12.08.2014 16:46, schrieb Vivek Goyal: > > Richard and Daniel reported that UML is broken due to changes to resource > > traversal functions. Problem is that iomem_resource.child can be null > > and new code does not consider

Re: [PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Richard Weinberger
Am 12.08.2014 16:46, schrieb Vivek Goyal: > Richard and Daniel reported that UML is broken due to changes to resource > traversal functions. Problem is that iomem_resource.child can be null > and new code does not consider that possibility. Old code used a for loop > and that loop will not even exe

[PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Vivek Goyal
Richard and Daniel reported that UML is broken due to changes to resource traversal functions. Problem is that iomem_resource.child can be null and new code does not consider that possibility. Old code used a for loop and that loop will not even execute if p was null. Revert back to for() loop log