[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0jgnE7rMPVEmohgYVt7ODzNkdq-ZRs4D1-hkzwXTky25w@mail.gmail.com>
Date: Wed, 22 Dec 2021 18:27:35 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Clément Léger <clement.leger@...tlin.com>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] software node: fix wrong node passed to find nargs_prop
On Wed, Dec 22, 2021 at 12:19 PM Heikki Krogerus
<heikki.krogerus@...ux.intel.com> wrote:
>
> On Mon, Dec 20, 2021 at 10:05:33PM +0100, Clément Léger wrote:
> > 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: b06184acf751 ("software node: Add software_node_get_reference_args()")
> > Signed-off-by: Clément Léger <clement.leger@...tlin.com>
>
> Acked-by: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
Applied as 5.17 material, thanks!
> > ---
> > drivers/base/swnode.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c
> > index 4debcea4fb12..0a482212c7e8 100644
> > --- a/drivers/base/swnode.c
> > +++ b/drivers/base/swnode.c
> > @@ -529,7 +529,7 @@ software_node_get_reference_args(const struct fwnode_handle *fwnode,
> > return -ENOENT;
> >
> > 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_val, 1);
> > if (error)
> > --
> > 2.34.1
>
> --
> heikki
Powered by blists - more mailing lists