diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-10 01:26:43 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-15 02:51:51 +0300 |
commit | d7431042465cae9314d299022427ed15386a2fed (patch) | |
tree | c8d37e5910c58c16b26ec2283a6272328d5b5597 /lib/efi_selftest/efi_selftest_block_device.c | |
parent | 1064f2ef03c7fbed15119403c65f1de0de7f7b6d (diff) | |
download | u-boot-d7431042465cae9314d299022427ed15386a2fed.tar.xz |
efi_driver: fix efi_uc_stop()
Use the correct protocol in efi_uc_stop() when detaching the driver from
the controller.
Change the block IO unit test for the block device driver to throw an error
instead of a todo if teardown fails.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_block_device.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_block_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_selftest/efi_selftest_block_device.c b/lib/efi_selftest/efi_selftest_block_device.c index 644c5ade21..d98a854e6d 100644 --- a/lib/efi_selftest/efi_selftest_block_device.c +++ b/lib/efi_selftest/efi_selftest_block_device.c @@ -257,9 +257,9 @@ static int teardown(void) disk_handle, &block_io_protocol_guid, &block_io); if (r != EFI_SUCCESS) { - efi_st_todo( + efi_st_error( "Failed to uninstall block I/O protocol\n"); - return EFI_ST_SUCCESS; + return EFI_ST_FAILURE; } } |