mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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:
parent
fb0e7e11d0
commit
a7de3902ed
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue