Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1343892

Re: [PATCH 2/2] device property: fix for a case of use-after-free

From Heikki Krogerus <heikki.krogerus@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] device property: fix for a case of use-after-free
Date 2016-02-26 09:10 +0100
Message-ID <r6lDk-eK-15@gated-at.bofh.it> (permalink)
References <r507U-7eO-21@gated-at.bofh.it> <r507U-7eO-19@gated-at.bofh.it> <r50Ui-7Ny-1@gated-at.bofh.it> <r529I-AD-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

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

csiph-web