mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Real OF systems have an ihandle under /chosen/stdout, not a phandle. Use
the right type.
This commit is contained in:
parent
fb5b9994b3
commit
02ef3f33de
1 changed files with 2 additions and 2 deletions
|
|
@ -89,13 +89,13 @@ ofw_get_console_phandle_path(phandle_t node, phandle_t *result,
|
|||
return (ENXIO);
|
||||
OF_getprop(node, prop, &field, sizeof(field));
|
||||
|
||||
/* This property might be a phandle or might be a path. Hooray. */
|
||||
/* This property might be either a ihandle or path. Hooray. */
|
||||
|
||||
output = -1;
|
||||
if (field.buf[size - 1] == 0)
|
||||
output = OF_finddevice(field.buf);
|
||||
if (output == -1 && size == 4)
|
||||
output = OF_xref_phandle(field.ref);
|
||||
output = OF_instance_to_package(field.ref);
|
||||
|
||||
if (output != -1) {
|
||||
*result = output;
|
||||
|
|
|
|||
Loading…
Reference in a new issue