aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2022-12-02 09:46:15 -0700
committerAlex Williamson <[email protected]>2022-12-05 12:37:54 -0700
commitce3895735cc26957dc6b2a8f5af07ddab09483ae (patch)
tree056ce86f1eb679273d5bc1569d10eadb6a551169 /tools/perf/scripts/python/stackcollapse.py
parente2d55709398e62cf53e5c7df3758ae52cc62d63a (diff)
vfio/ap/ccw/samples: Fix device_register() unwind path
We always need to call put_device() if device_register() fails. All vfio drivers calling device_register() include a similar unwind stack via gotos, therefore split device_unregister() into its device_del() and put_device() components in the unwind path, and add a goto target to handle only the put_device() requirement. Reported-by: Ruan Jinjie <[email protected]> Link: https://lore.kernel.org/all/[email protected] Fixes: d61fc96f47fd ("sample: vfio mdev display - host device") Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.") Fixes: a5e6e6505f38 ("sample: vfio bochs vbe display (host device for bochs-drm)") Fixes: 9e6f07cd1eaa ("vfio/ccw: create a parent struct") Fixes: 36360658eb5a ("s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem") Cc: Tony Krowiak <[email protected]> Cc: Halil Pasic <[email protected]> Cc: Jason Herne <[email protected]> Cc: Kirti Wankhede <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Eric Farman <[email protected]> Reviewed-by: Tony Krowiak <[email protected]> Reviewed-by: Jason J. Herne <[email protected]> Link: https://lore.kernel.org/r/166999942139.645727.12439756512449846442.stgit@omen Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions