aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2021-04-06 16:40:30 -0300
committerAlex Williamson <[email protected]>2021-04-07 15:39:17 -0600
commit9a302449a58d45d0ef2aab686f64b35919bc604c (patch)
treef7716b02c40a3a9e58634786baee6ec67f6531dc /tools/perf/util/trace-event-scripting.c
parenta9f8111d0b5f445d853345e6917c1781573e4ba9 (diff)
vfio/mdev: Add missing reference counting to mdev_type
struct mdev_type holds a pointer to the kref'd object struct mdev_parent, but doesn't hold the kref. The lifetime of the parent becomes implicit because parent_remove_sysfs_files() is supposed to remove all the access before the parent can be freed, but this is very hard to reason about. Make it obviously correct by adding the missing get. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions