Fix bug in ufdt_get_node_by_phandle

Bug:67779848
Test: mm

If the phandle being searched for exceeded the highest phandle
in phandle_table.data, the bug was causing the return of the node
corresponding to the highest phandle in phandle_table.data.

Change-Id: I5566370446766620a4bf58febc7205626de04674
Git-repo: https://android.googlesource.com/platform/system/libufdt
Git-Commit: 9ec4bdabb790b0ddbb627c86830569a809121000
1 file changed