Commit:     4b4686e7a6fe8347938beef518e9b309127945f1
Parent:     7c59b6615fed9d3006b1e7b865fb07e483129611
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Tue May 1 23:26:30 2007 +0200
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Tue May 1 23:26:30 2007 +0200

    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: Jean Delvare <[EMAIL PROTECTED]>
 drivers/i2c/busses/scx200_acb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c
index d816ab0..0db56e7 100644
--- 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)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to