Re: [PATCH] of/address: Don't loop forever in of_find_matching_node_by_address().

2015-08-24 Thread Rob Herring
On Wed, Aug 19, 2015 at 3:17 PM, David Daney wrote: > From: David Daney > > If the internal call to of_address_to_resource() fails, we end up > looping forever in of_find_matching_node_by_address(). This can be > caused by a defective device tree, or calling with an incorrect > matches argument.

[PATCH] of/address: Don't loop forever in of_find_matching_node_by_address().

2015-08-19 Thread David Daney
From: David Daney If the internal call to of_address_to_resource() fails, we end up looping forever in of_find_matching_node_by_address(). This can be caused by a defective device tree, or calling with an incorrect matches argument. Fix by calling of_find_matching_node() unconditionally at the