diff options
| author | Dan Williams <[email protected]> | 2022-11-04 00:30:30 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2022-11-04 22:58:35 +0000 |
| commit | 0d9e734018d70cecf79e2e4c6082167160a0f13f (patch) | |
| tree | 0b1b634170cd8b47e5c2034a87c811843ff25ce9 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | cxl/region: Fix region HPA ordering validation (diff) | |
| download | kernel-0d9e734018d70cecf79e2e4c6082167160a0f13f.tar.gz kernel-0d9e734018d70cecf79e2e4c6082167160a0f13f.zip | |
cxl/region: Fix cxl_region leak, cleanup targets at region delete
When a region is deleted any targets that have been previously assigned
to that region hold references to it. Trigger those references to
drop by detaching all targets at unregister_region() time.
Otherwise that region object will leak as userspace has lost the ability
to detach targets once region sysfs is torn down.
Cc: <[email protected]>
Fixes: b9686e8c8e39 ("cxl/region: Enable the assignment of endpoint decoders to regions")
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Vishal Verma <[email protected]>
Link: https://lore.kernel.org/r/166752183055.947915.17681995648556534844.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
