X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=MdeModulePkg%2FUniversal%2FNetwork%2FArpDxe%2FArpImpl.c;h=52b6e21652c630fa654153a80674649a92ffa654;hb=1b86875186e6eb37b81046747a3fa898942cbc3b;hp=b46c7047eefadaed9438b6c0e06118d77dc6deef;hpb=1ce69023d6e1977564dc91495260005743930603;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index b46c7047ee..52b6e21652 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c @@ -1545,10 +1545,10 @@ ArpFindCacheEntry ( if (EntryLength != NULL) { // - // Return the entry length. + // Return the entry length, make sure its 8 bytes alignment. // - *EntryLength = sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength + - ArpService->SnpMode.HwAddressSize; + *EntryLength = (((sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength + + ArpService->SnpMode.HwAddressSize) + 3) & ~(0x3)); } if (EntryCount != NULL) {