projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c59b66
)
scx200_acb: Fix PCI device reference count
author
Jean Delvare
<khali@linux-fr.org>
Tue, 1 May 2007 21:26:30 +0000
(23:26 +0200)
committer
Jean Delvare
<khali@hyperion.delvare>
Tue, 1 May 2007 21:26:30 +0000
(23:26 +0200)
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: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/scx200_acb.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/scx200_acb.c
b/drivers/i2c/busses/scx200_acb.c
index d816ab089fe2c45b3bc5a2ed35dd094fa3390973..0db56e7bc34e95369f18edd027e34ed487d0579e 100644
(file)
--- a/
drivers/i2c/busses/scx200_acb.c
+++ b/
drivers/i2c/busses/scx200_acb.c
@@
-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;