[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160226103644.GE29434@kuha.fi.intel.com>
Date: Fri, 26 Feb 2016 12:36:44 +0200
From: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
To: "Shevchenko, Andriy" <andriy.shevchenko@...el.com>
Cc: "rjw@...ysocki.net" <rjw@...ysocki.net>,
"mika.westerberg@...ux.intel.com" <mika.westerberg@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"John.Youn@...opsys.com" <John.Youn@...opsys.com>
Subject: Re: [PATCH 2/2] device property: fix for a case of use-after-free
On Fri, Feb 26, 2016 at 10:04:34AM +0200, Heikki Krogerus wrote:
> On Mon, Feb 22, 2016 at 05:04:04PM +0000, Shevchenko, Andriy wrote:
> > Considering this, perhaps better solution is to convert last lines to
> >
> > if (!IS_ERR(fwnode) && is_pset_node(fwnode)) {
> > set_secondary_fwnode(dev, NULL);
> > pset_free_set(to_pset_node(fwnode));
> > }
>
> After some testing, this seems to work. I'll prepare v2 and use it.
Sorry, I was a bit too hasty with my answer. So that also does not
work in case the pset provides the fwnode.
Thanks,
--
heikki
Powered by blists - more mailing lists