提交 4b4686e7 编写于 作者: J Jean Delvare 提交者: Jean Delvare

scx200_acb: Fix PCI device reference count

The scx200_acb driver supports two kind of devices, PCI ones and ISA
ones. Even ISA ones are detected using the presence of a given PCI
device, and we get a reference to it, but never put it back, so we
have a leak. Fix it.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 7c59b661
......@@ -599,6 +599,7 @@ static __init int scx200_scan_pci(void)
else {
int i;
pci_dev_put(pdev);
for (i = 0; i < MAX_DEVICES; ++i) {
if (base[i] == 0)
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册