]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwrng: pseries - Return errors to upper levels in pseries-rng.c
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 25 Sep 2013 09:24:17 +0000 (19:24 +1000)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 16:02:03 +0000 (17:02 +0100)
commitb4dc3a3ad9a91453d3d72a6a3e5218d670dfc7dd
treee56a11d4677c50609b051cbaebf4da515a23e8c0
parent1c854a6cd16b5096200fb47d1418b1d20f7df6bd
hwrng: pseries - Return errors to upper levels in pseries-rng.c

commit d319fe2a0af3509f959d5195fb8916accbf14857 upstream.

We don't expect to get errors from the hypervisor when reading the rng,
but if we do we should pass the error up to the hwrng driver. Otherwise
the hwrng driver will continue calling us forever.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/char/hw_random/pseries-rng.c