Ralph Wuerthner 893f112866 [S390] hw_random: allow rng_dev_read() to return hardware errors.
The api for hardware random number generators is currently limited to
devices that never fail. If the hardware is registered as a source for
random numbers it has to work. This prevents the use of i/o based
random number devices where the i/o might fail.

Add a check for errors after the read from a hardware random number device.

This patch is required to support large random numbers retrieved
from the CEX2C cards on System z.

Signed-off-by: Ralph Wuerthner <rwuerthn@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2008-04-17 07:47:02 +02:00
..
2008-04-06 16:10:40 -07:00
2008-04-02 15:28:19 -07:00
2008-04-02 15:28:19 -07:00
2008-02-06 10:41:10 -08:00
2008-02-08 09:22:41 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:42:52 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 11:15:09 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2005-04-16 15:20:36 -07:00
2008-03-07 10:05:13 -08:00
2008-04-04 18:36:49 +02:00
2008-02-07 08:42:33 -08:00
2007-02-20 17:11:55 +00:00
2008-02-07 08:42:25 -08:00
2008-02-07 08:42:25 -08:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2008-02-08 09:22:24 -08:00
2008-02-07 08:42:35 -08:00
2008-02-07 08:42:34 -08:00
2007-10-17 08:42:55 -07:00
2008-03-30 14:20:23 -07:00
2007-02-12 09:48:30 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2005-04-16 15:20:36 -07:00
2008-03-13 13:11:43 -07:00
2008-03-19 19:42:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:00 -08:00
2007-07-16 09:05:46 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-02-07 08:42:34 -08:00
2008-02-07 08:42:34 -08:00
2007-10-19 11:53:43 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-02-03 17:11:42 +02:00
2006-12-20 16:37:48 +11:00
2007-10-17 08:42:56 -07:00
2008-03-04 16:35:11 -08:00