Skip to content

Commit

Permalink
Merge tag 'devicetree-fixes-for-6.8-2' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/linux/kernel/git/robh/linux

Pull devicetree fix from Rob Herring:
 "One fix for a bug in fw_devlink handling of OF graph. This doesn't
  completely fix the reported problems, but it's with users adding out
  of tree code"

* tag 'devicetree-fixes-for-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing
  • Loading branch information
Linus Torvalds committed Mar 2, 2024
2 parents d17468c + 7cb50f6 commit fb54efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ static struct device_node *parse_remote_endpoint(struct device_node *np,
int index)
{
/* Return NULL for index > 0 to signify end of remote-endpoints. */
if (!index || strcmp(prop_name, "remote-endpoint"))
if (index > 0 || strcmp(prop_name, "remote-endpoint"))
return NULL;

return of_graph_get_remote_port_parent(np);
Expand Down

0 comments on commit fb54efc

Please sign in to comment.