aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSchmid, Carsten <[email protected]>2019-08-23 14:11:28 +0000
committerGreg Kroah-Hartman <[email protected]>2019-08-28 22:48:37 +0200
commit76da906ad727048a74bb8067031ee99fc070c7da (patch)
treec61e24615835399d53a00ca60039f34c97a6c6df /tools/perf/scripts/python/event_analyzing_sample.py
parenta684d8fd87182090ee96e34519ecdf009cef093a (diff)
usb: hcd: use managed device resources
Using managed device resources in usb_hcd_pci_probe() allows devm usage for resource subranges, such as the mmio resource for the platform device created to control host/device mode mux, which is a xhci extended capability, and sits inside the xhci mmio region. If managed device resources are not used then "parent" resource is released before subrange at driver removal as .remove callback is called before the devres list of resources for this device is walked and released. This has been observed with the xhci extended capability driver causing a use-after-free which is now fixed. An additional nice benefit is that error handling on driver initialisation is simplified much. Signed-off-by: Carsten Schmid <[email protected]> Tested-by: Carsten Schmid <[email protected]> Reviewed-by: Mathias Nyman <[email protected]> Fixes: fa31b3cb2ae1 ("xhci: Add Intel extended cap / otg phy mux handling") Cc: <[email protected]> # v4.19+ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions