aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2016-03-10 13:03:18 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-10 21:33:16 +0100
commit0d67e0fa1664ad6aaba0552e170608bafb4b6196 (patch)
tree28987f5570ca421359271c4bc22b3dca3f90dd66 /tools/perf/scripts/python/Perf-Trace-Util/lib
parent7781203416ffc4e731619f8a8b93a37599a8f502 (diff)
device property: fix for a case of use-after-free
In device_remove_property_set(), the secondary fwnode needs to be cleared before the pset is freed. This fixes a use-after-free when a property set is providing the primary fwnode. As a result of the fix, the primary fwnode may end up containing ERR_PTR(-ENODEV), so also adding checks for it to the property handling code. Reported-by: John Youn <John.Youn@synopsys.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions