Re: [PATCH 1/3 v2] resource: fix an error which walks through iomem resources

2018-09-20 Thread Dave Young
On 09/20/18 at 02:39pm, lijiang wrote: > 在 2018年09月19日 21:29, Borislav Petkov 写道: > > On Wed, Sep 19, 2018 at 08:52:49PM +0800, Lianbo Jiang wrote: > > > > ... > > > >> In fact, we should get the resource A and B when we walk through the > >> whole tree, but it only gets the resource A, the

Re: [PATCH 1/3 v2] resource: fix an error which walks through iomem resources

2018-09-20 Thread lijiang
在 2018年09月19日 21:29, Borislav Petkov 写道: > On Wed, Sep 19, 2018 at 08:52:49PM +0800, Lianbo Jiang wrote: > > ... > >> In fact, we should get the resource A and B when we walk through the >> whole tree, but it only gets the resource A, the resource B is missed. >> >> Signed-off-by: Dave Young >>

Re: [PATCH 1/3 v2] resource: fix an error which walks through iomem resources

2018-09-19 Thread Borislav Petkov
On Wed, Sep 19, 2018 at 08:52:49PM +0800, Lianbo Jiang wrote: ... > In fact, we should get the resource A and B when we walk through the > whole tree, but it only gets the resource A, the resource B is missed. > > Signed-off-by: Dave Young > Signed-off-by: Lianbo Jiang Before looking at

[PATCH 1/3 v2] resource: fix an error which walks through iomem resources

2018-09-19 Thread Lianbo Jiang
When we walk through iomem resources by calling walk_iomem_res_desc(), the values of the function parameter may be modified in the while loop of __walk_iomem_res_desc(), which will cause us to not get the desired result in some cases. At present, it only restores the original value of res->end,