Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1343892 > unrolled thread
| Started by | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| First post | 2016-02-26 09:10 +0100 |
| Last post | 2016-02-26 11:40 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/2] device property: fix for a case of use-after-free Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2016-02-26 09:10 +0100
Re: [PATCH 2/2] device property: fix for a case of use-after-free Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2016-02-26 11:40 +0100
| From | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| Date | 2016-02-26 09:10 +0100 |
| Subject | Re: [PATCH 2/2] device property: fix for a case of use-after-free |
| Message-ID | <r6lDk-eK-15@gated-at.bofh.it> |
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.
Thanks Andy,
--
heikki
[toc] | [next] | [standalone]
| From | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| Date | 2016-02-26 11:40 +0100 |
| Message-ID | <r6nYt-1Np-1@gated-at.bofh.it> |
| In reply to | #1343892 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web