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>
This commit is contained in:
committed by
Linus Torvalds
parent
fb0e7e11d0
commit
a7de3902ed
@@ -101,8 +101,8 @@ 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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user