X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OptionRomPkg%2FCirrusLogic5430Dxe%2FEdid.c;h=5f288d219e7236ab873176e3b4e201152942180b;hb=96ae5934cfc393e2c53198e2a067a54202d487a6;hp=20b93a8e899f0e5fce31d3f6155f139f9caf3f4b;hpb=ac1ca10416edf34b6700a31d0bc58d144e35974c;p=mirror_edk2.git diff --git a/OptionRomPkg/CirrusLogic5430Dxe/Edid.c b/OptionRomPkg/CirrusLogic5430Dxe/Edid.c index 20b93a8e89..5f288d219e 100644 --- a/OptionRomPkg/CirrusLogic5430Dxe/Edid.c +++ b/OptionRomPkg/CirrusLogic5430Dxe/Edid.c @@ -1,14 +1,8 @@ /** @file Read EDID information and parse EDID information. - Copyright (c) 2008, Intel Corporation. All rights reserved.
- This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -141,7 +135,7 @@ ReadEdidData ( } *EdidDataBlock = AllocateCopyPool ( - sizeof (EDID_BLOCK_SIZE), + EDID_BLOCK_SIZE, ValidEdid ); if (*EdidDataBlock == NULL) { @@ -370,7 +364,7 @@ CirrusLogic5430VideoModeSetup ( // // Allocate double size of VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE to avoid overflow // - EdidOverrideDataBlock = AllocatePool (sizeof (EDID_BLOCK_SIZE * 2)); + EdidOverrideDataBlock = AllocatePool (EDID_BLOCK_SIZE * 2); if (NULL == EdidOverrideDataBlock) { Status = EFI_OUT_OF_RESOURCES; goto Done;