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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Oct 2013 06:17:01 +0000 (14:17 +0800)
commitd319fe2a0af3509f959d5195fb8916accbf14857
tree284b5ea5a9ffe4536c30e41042ee58a697ea9822
parent49cca7e047468f5f80970d635b54afabeb441cce
hwrng: pseries - Return errors to upper levels in pseries-rng.c

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>
drivers/char/hw_random/pseries-rng.c