of/address: Don't loop forever in of_find_matching_node_by_address().
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 end of the loop. Signed-off-by: NDavid Daney <david.daney@cavium.com> Cc: stable@vger.kernel.org Signed-off-by: NRob Herring <robh@kernel.org>
Showing
想要评论请 注册 或 登录