Commit a7de3902 authored by Eugene Surovegin's avatar Eugene Surovegin Committed by Linus Torvalds

rapidio: fix device reference counting

Fix RapidIO device reference counting.
Signed-of-by: default avatarEugene Surovegin <ebs@ebshome.net>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fb0e7e11
...@@ -101,9 +101,9 @@ static int rio_device_probe(struct device *dev) ...@@ -101,9 +101,9 @@ static int rio_device_probe(struct device *dev)
if (error >= 0) { if (error >= 0) {
rdev->driver = rdrv; rdev->driver = rdrv;
error = 0; error = 0;
} else
rio_dev_put(rdev); rio_dev_put(rdev);
} }
}
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment