diff options
author | Yang Yingliang <[email protected]> | 2022-11-28 14:55:12 +0800 |
---|---|---|
committer | Tony Luck <[email protected]> | 2022-11-28 09:42:41 -0800 |
commit | 9c8921555907f4d723f01ed2d859b66f2d14f08e (patch) | |
tree | 655d7830d6cc226fbf33d16d0c2fe61587f1e85a /scripts/generate_rust_analyzer.py | |
parent | b586a59e14e61a4805e1ed08a8c4f67ed38ea7e4 (diff) |
EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
As the comment of pci_get_domain_bus_and_slot() says, it returns
a PCI device with refcount incremented, so it doesn't need to
call an extra pci_dev_get() in pci_get_dev_wrapper(), and the PCI
device needs to be put in the error path.
Fixes: d4dc89d069aa ("EDAC, i10nm: Add a driver for Intel 10nm server processors")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Qiuxu Zhuo <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions