linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: Fix issue where code would fall through to error case.
@ 2016-11-17 23:25 Moritz Fischer
  2016-11-17 23:40 ` Frank Rowand
  0 siblings, 1 reply; 10+ messages in thread
From: Moritz Fischer @ 2016-11-17 23:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: pantelis.antoniou, robh+dt, frowand.list, moritz, devicetree,
	Moritz Fischer

No longer fall through into the error case that prints out
an error if no error (err = 0) occurred.

Fixes d9181b20a83(of: Add back an error message, restructured)
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
---
 drivers/of/resolver.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/of/resolver.c b/drivers/of/resolver.c
index 783bd09..785076d 100644
--- a/drivers/of/resolver.c
+++ b/drivers/of/resolver.c
@@ -358,9 +358,13 @@ int of_resolve_phandles(struct device_node *overlay)
 
 		err = update_usages_of_a_phandle_reference(overlay, prop, phandle);
 		if (err)
-			break;
+			goto err_out;
 	}
 
+	of_node_put(tree_symbols);
+
+	return 0;
+
 err_out:
 	pr_err("overlay phandle fixup failed: %d\n", err);
 out:
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-11-29 16:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17 23:25 [PATCH] of: Fix issue where code would fall through to error case Moritz Fischer
2016-11-17 23:40 ` Frank Rowand
2016-11-18  0:02   ` Frank Rowand
2016-11-18  0:10     ` Moritz Fischer
2016-11-23 21:58       ` Rob Herring
2016-11-26 21:39         ` Frank Rowand
2016-11-28 15:30           ` Frank Rowand
2016-11-29 15:06             ` Rob Herring
2016-11-29 15:55               ` Moritz Fischer
2016-11-29 16:52               ` Frank Rowand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).