efi_loader: incorrect return value form DisconnectController
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 13 Sep 2019 16:20:40 +0000 (18:20 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 20 Sep 2019 18:09:18 +0000 (20:09 +0200)
commit7dc10c933c5d95d173dd17c8c69be8585146c4c8
tree05cbfee83064e3dc62e796a883e77765543c5680
parent23ad52fff4da99895b40a0dddb63579adaae2358
efi_loader: incorrect return value form DisconnectController

DisconnectController() should never return EFI_NOT_FOUND.
If EFI_DRIVER_BINDING_PROTOCOL.Stop() fails, return EFI_DEVICE_ERROR.

If the driver handle does not expose the EFI_DRIVER_BINDING_PROTOCOL
return EFI_INVALID_PARAMETER.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c