mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[rng] Allow entropy_enable() to return an error
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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++ ) {
|
||||
|
||||
Reference in New Issue
Block a user