[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <64a1ba836139b028936e24705eab06a032d598cf.camel@redhat.com>
Date: Thu, 16 Jul 2020 21:22:11 +0300
From: Maxim Levitsky <mlevitsk@...hat.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, rafael.j.wysocki@...el.com,
sakari.ailus@...ux.intel.com, heikki.krogerus@...ux.intel.com,
gregkh@...uxfoundation.org
Subject: Re: kernel oops in 'typec_ucsi' due to commit 'drivers property:
When no children in primary, try secondary'
On Thu, 2020-07-16 at 21:21 +0300, Andy Shevchenko wrote:
> On Thu, Jul 16, 2020 at 09:00:00PM +0300, Maxim Levitsky wrote:
> > On Thu, 2020-07-16 at 18:47 +0300, Andy Shevchenko wrote:
> > > On Thu, Jul 16, 2020 at 11:17:03AM +0300, Maxim Levitsky wrote:
> > > > Hi!
> > > >
> > > > Few days ago I bisected a regression on 5.8 kernel:
> > > >
> > > > I have nvidia rtx 2070s and its USB type C port driver (which is open source)
> > > > started to crash on load:
> > >
> > > ...
> > >
> > > > Reverting the commit helped fix this oops.
> > > >
> > > > My .config attached.
> > > > If any more info is needed I'll be happy to provide it,
> > > > and of course test patches.
> > >
> > > Can you test below?
> > >
> > > diff --git a/drivers/base/property.c b/drivers/base/property.c
> > > index 1e6d75e65938..d58aa98fe964 100644
> > > --- a/drivers/base/property.c
> > > +++ b/drivers/base/property.c
> > > @@ -721,7 +721,7 @@ struct fwnode_handle *device_get_next_child_node(struct device *dev,
> > > return next;
> > >
> > > /* When no more children in primary, continue with secondary */
> > > - if (!IS_ERR_OR_NULL(fwnode->secondary))
> > > + if (fwnode && !IS_ERR_OR_NULL(fwnode->secondary))
> > > next = fwnode_get_next_child_node(fwnode->secondary, child);
> > >
> > > return next;
> >
> > It works (no more oops)
>
> Thanks for testing. I'm about to send formal patch, can you give your Tested-by tag there then?
Of course.
Tested-by: Maxim Levitsky <mlevitsk@...hat.com>
Best regards,
Maxim Levitsky
>
Powered by blists - more mailing lists