]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: Blt() with incorrect BltOperation
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Jun 2019 10:42:46 +0000 (12:42 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 20 Jun 2019 22:26:14 +0000 (22:26 +0000)
If EFI_GRAPHICS_OUTPUT_PROTOCOL.Blt() is called with an invalid value of
BltOperation return EFI_INVALID_PARAMETER.

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

index e003823b6061efd390f127fd3350ce0a59bb3782..9428c3b83cf749f00e7d19774fd8f926751ff233 100644 (file)
@@ -367,7 +367,7 @@ efi_status_t EFIAPI gop_blt(struct efi_gop *this, struct efi_gop_pixel *buffer,
                                         dy, width, height, delta, vid_bpp);
                break;
        default:
-               ret = EFI_UNSUPPORTED;
+               ret = EFI_INVALID_PARAMETER;
        }
 
        if (ret != EFI_SUCCESS)