mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
software node: fix wrong node passed to find nargs_prop
[ Upstream commitc5fc5ba8b6] nargs_prop refers to a property located in the reference that is found within the nargs property. Use the correct reference node in call to property_entry_read_int_array() to retrieve the correct nargs value. Fixes:b06184acf7("software node: Add software_node_get_reference_args()") Signed-off-by: Clément Léger <clement.leger@bootlin.com> Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Daniel Scally <djrscally@gmail.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f8f3c1720d
commit
1d4e722b62
|
|
@ -519,7 +519,7 @@ software_node_get_reference_args(const struct fwnode_handle *fwnode,
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
||||||
if (nargs_prop) {
|
if (nargs_prop) {
|
||||||
error = property_entry_read_int_array(swnode->node->properties,
|
error = property_entry_read_int_array(ref->node->properties,
|
||||||
nargs_prop, sizeof(u32),
|
nargs_prop, sizeof(u32),
|
||||||
&nargs_prop_val, 1);
|
&nargs_prop_val, 1);
|
||||||
if (error)
|
if (error)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user