diff options
author | Eugene Surovegin <ebs@ebshome.net> | 2008-07-11 02:30:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-11 03:04:43 +0200 |
commit | a7de3902edce099e4102c1272ec0ab569c1791f7 (patch) | |
tree | 5049baf7c55f0254fe3f01def5a143cf01f3bb46 /drivers/rapidio | |
parent | tpm: add Intel TPM TIS device HID (diff) | |
download | linux-a7de3902edce099e4102c1272ec0ab569c1791f7.tar.xz linux-a7de3902edce099e4102c1272ec0ab569c1791f7.zip |
rapidio: fix device reference counting
Fix RapidIO device reference counting.
Signed-of-by: Eugene Surovegin <ebs@ebshome.net>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rapidio')
-rw-r--r-- | drivers/rapidio/rio-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rapidio/rio-driver.c b/drivers/rapidio/rio-driver.c index 3ce9f3defc12..956d3e79f6aa 100644 --- a/drivers/rapidio/rio-driver.c +++ b/drivers/rapidio/rio-driver.c @@ -101,8 +101,8 @@ static int rio_device_probe(struct device *dev) if (error >= 0) { rdev->driver = rdrv; error = 0; + } else rio_dev_put(rdev); - } } return error; } |