Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
}
}