efi_selftest: correct efi_selftest_manageprotocols
[oweals/u-boot.git] / lib / efi_selftest / efi_selftest_manageprotocols.c
index 874f86102d0787721eca89e653efb3a3a6f498f1..44b8da3ba5d628337b32b56e9808fd3b303a1e6f 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * efi_selftest_manageprotocols
  *
  * Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
  *
- * SPDX-License-Identifier:     GPL-2.0+
- *
  * This unit test checks the following protocol services:
  * InstallProtocolInterface, UninstallProtocolInterface,
  * InstallMultipleProtocolsInterfaces, UninstallMultipleProtocolsInterfaces,
@@ -336,7 +335,7 @@ static int execute(void)
                return EFI_ST_FAILURE;
        }
        ret = boottime->uninstall_protocol_interface(handle1, &guid3,
-                                                    &interface1);
+                                                    &interface3);
        if (ret != EFI_SUCCESS) {
                efi_st_error("UninstallProtocolInterface failed\n");
                return EFI_ST_FAILURE;