Re: [PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-29 Thread Andy Shevchenko
On Tue, 2015-12-29 at 10:40 +0200, Heikki Krogerus wrote: > Hi Andy, > > Found a bug from my code.. > > > diff --git a/drivers/base/property.c b/drivers/base/property.c > > index 0b22c8a..6c04d18 100644 > > --- a/drivers/base/property.c > > +++ b/drivers/base/property.c > > @@ -218,7 +218,7 @@

Re: [PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-29 Thread Heikki Krogerus
Hi Andy, Found a bug from my code.. > diff --git a/drivers/base/property.c b/drivers/base/property.c > index 0b22c8a..6c04d18 100644 > --- a/drivers/base/property.c > +++ b/drivers/base/property.c > @@ -218,7 +218,7 @@ bool fwnode_property_present(struct fwnode_handle > *fwnode, const char

Re: [PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-29 Thread Heikki Krogerus
Hi Andy, Found a bug from my code.. > diff --git a/drivers/base/property.c b/drivers/base/property.c > index 0b22c8a..6c04d18 100644 > --- a/drivers/base/property.c > +++ b/drivers/base/property.c > @@ -218,7 +218,7 @@ bool fwnode_property_present(struct fwnode_handle > *fwnode, const char

Re: [PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-29 Thread Andy Shevchenko
On Tue, 2015-12-29 at 10:40 +0200, Heikki Krogerus wrote: > Hi Andy, > > Found a bug from my code.. > > > diff --git a/drivers/base/property.c b/drivers/base/property.c > > index 0b22c8a..6c04d18 100644 > > --- a/drivers/base/property.c > > +++ b/drivers/base/property.c > > @@ -218,7 +218,7 @@

[PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-23 Thread Andy Shevchenko
From: Heikki Krogerus This fixes NULL pointer dereference when the primary fwnode handle does not exist, for example with PCI devices that do not have ACPI companion. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/base/property.c | 8 1 file changed, 4

[PATCH v2 2/3] device property: the secondary fwnode needs to depend on the primary

2015-12-23 Thread Andy Shevchenko
From: Heikki Krogerus This fixes NULL pointer dereference when the primary fwnode handle does not exist, for example with PCI devices that do not have ACPI companion. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko