aboutsummaryrefslogtreecommitdiff
path: root/kernel/irq/pm.c
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2017-08-22 23:39:58 +0300
committerRafael J. Wysocki <[email protected]>2017-08-22 22:58:38 +0200
commitb5212f57da145e53df790a7e211d94daac768bf8 (patch)
tree86c1a98b3f8543a36fde781c1f4b8b0a57e0d7e5 /kernel/irq/pm.c
parent14ccee78fc82f5512908f4424f541549a5705b89 (diff)
ACPI: device property: Fix node lookup in acpi_graph_get_child_prop_value()
acpi_graph_get_child_prop_value() is intended to find a child node with a certain property value pair. The check if (!fwnode_property_read_u32(fwnode, prop_name, &nr)) continue; is faulty: fwnode_property_read_u32() returns zero on success, not on failure, leading to comparing values only if the searched property was not found. Moreover, the check is made against the parent device node instead of the child one as it should be. Fixes: 79389a83bc38 (ACPI / property: Add support for remote endpoints) Reported-by: Hyungwoo Yang <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Cc: 4.12+ <[email protected]> # 4.12+ [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'kernel/irq/pm.c')
0 files changed, 0 insertions, 0 deletions