diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 09:12:51 +0000 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2026-09-22 17:23:58 -0700 |
| commit | f0d8c34b3b5e845113581d7d3b24ddaa61bce1f0 (patch) | |
| tree | 21cfd44d29b0484f4ab0559ab730113f79ca84b6 /tools/perf/scripts/python | |
| parent | 2caf9f28c38b8a4062355df7a53fcaeb2c107f1e (diff) | |
EDAC/i10nm: Fix mdev reference leak in i10nm_get_ddr_munits()
In i10nm_get_ddr_munits(), get_ddr_munit() returns a PCI device with
its reference count incremented. If ioremap() fails to map the MMIO
space of the memory controller, the function returns -ENODEV without
putting the reference held by mdev, leaking it.
Put the device reference before returning on the ioremap failure path.
[Tony: Dropped the Cc: stable tag]
Fixes: c545f5e41225 ("EDAC/i10nm: Skip the absent memory controllers")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Qiuxu Zhuo <qzhuo@nvidia.com>
Link: https://patch.msgid.link/20260916091251.1997522-1-vulab@iscas.ac.cn
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
