[rng] Allow entropy_enable() to return an error

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-03-18 16:45:04 +00:00
parent 66f200bdac
commit 196f0bb081
5 changed files with 12 additions and 5 deletions

View File

@@ -422,7 +422,8 @@ int get_entropy_input_tmp ( unsigned int num_samples, uint8_t *tmp,
int rc;
/* Enable entropy gathering */
entropy_enable();
if ( ( rc = entropy_enable() ) != 0 )
return rc;
/* Perform mandatory startup tests, if not yet performed */
for ( ; startup_tested < startup_test_count() ; startup_tested++ ) {