diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-13 17:25:00 -0400 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-09-14 17:53:49 -0700 |
| commit | 68a3e57814dea71157450ed5fb96c5cf62da8435 (patch) | |
| tree | fb9f44d38aacc4c2d59f0d62a947492e39ffdab5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 30713abb1e0f3fd958d08909481ecd101744c78f (diff) | |
EDAC/ie31200: Disable PCI device when probing fails
ie31200_init_one() enables the PCI device before calling ie31200_probe1().
If probing fails, it returns without balancing the successful enable,
leaving the PCI enable count elevated.
Call pci_disable_device() on that failure path. This also covers the
direct ie31200_init_one() call from the module initialization fallback,
while preserving the existing return values and successful probe path.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Assisted-by: LLM
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260913212500.60272-1-mhun512@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
