diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-02-02 20:54:23 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-02 20:54:23 +0000 |
commit | 6788c8cc94c6458a85a3c008e3ff24c21b6cc98f (patch) | |
tree | 6e543fbd9b9cba63d39222a30441eddc84ca86b3 | |
parent | f2ac1957c8226de55212800a8fa6029d8c58695d (diff) | |
parent | 51c5d7da4024da10103b4228c57ac8626ff80485 (diff) | |
download | libufdt-6788c8cc94c6458a85a3c008e3ff24c21b6cc98f.tar.gz |
Fix bug in ufdt_get_node_by_phandle am: 9ec4bdabb7
am: 51c5d7da40
Change-Id: I458e6fd86e3e9d7c908afab3cb1fa2eaf1b237c7
-rw-r--r-- | ufdt_convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ufdt_convert.c b/ufdt_convert.c index 9d7c698..5c69f1f 100644 --- a/ufdt_convert.c +++ b/ufdt_convert.c @@ -230,7 +230,7 @@ struct ufdt_node *ufdt_get_node_by_phandle(struct ufdt *tree, else s = mid; } - if (e - s > 0) { + if (e - s > 0 && tree->phandle_table.data[s].phandle == phandle) { res = tree->phandle_table.data[s].node; } return res; |