Skip to content

Commit fb54efc

Browse files
committed
Merge tag 'devicetree-fixes-for-6.8-2' of git://git.kernel.org/pub/scm/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
2 parents d17468c + 7cb50f6 commit fb54efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ static struct device_node *parse_remote_endpoint(struct device_node *np,
13041304
int index)
13051305
{
13061306
/* Return NULL for index > 0 to signify end of remote-endpoints. */
1307-
if (!index || strcmp(prop_name, "remote-endpoint"))
1307+
if (index > 0 || strcmp(prop_name, "remote-endpoint"))
13081308
return NULL;
13091309

13101310
return of_graph_get_remote_port_parent(np);

0 commit comments

Comments
 (0)