diff options
author | Yunhui Cui <cuiyunhui@bytedance.com> | 2025-02-20 15:17:16 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-03-01 09:12:37 +0300 |
commit | 7f35b429802a8065aa61e2a3f567089649f4d98e (patch) | |
tree | 7007ef5bcafd19f7a249aa60169ffb996dccae7e /tools/perf/scripts/python/syscall-counts.py | |
parent | 6eb1e8ef586ac4a3dcdc20248f9cb45e4ceb141f (diff) | |
download | linux-7f35b429802a8065aa61e2a3f567089649f4d98e.tar.xz |
perf/dwc_pcie: fix duplicate pci_dev devices
During platform_device_register, wrongly using struct device
pci_dev as platform_data caused a kmemdup copy of pci_dev. Worse
still, accessing the duplicated device leads to list corruption as its
mutex content (e.g., list, magic) remains the same as the original.
Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250220121716.50324-3-cuiyunhui@bytedance.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions