aboutsummaryrefslogtreecommitdiff
path: root/Drivers
diff options
context:
space:
mode:
authorAlan Ott <alan@softiron.co.uk>2016-08-30 12:04:25 -0400
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-30 17:12:27 +0100
commit98af09fcda4a0bffc08237ce5ca9e7e2436878d8 (patch)
tree60935d71c57541a2e415e194984142ee1ad62d83 /Drivers
parent68f2976a59b0eed83498cf5a755b1f67cceca9ae (diff)
Drivers/Net/MarvellYukon: Zero allocated memory for DMA receive buffers
Explicitly zero allocated memory for DMA receive buffers to help guard against security issues. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Alan Ott <alan@softiron.co.uk> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Drivers')
-rw-r--r--Drivers/Net/MarvellYukonDxe/if_msk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Drivers/Net/MarvellYukonDxe/if_msk.c b/Drivers/Net/MarvellYukonDxe/if_msk.c
index 292fa23..1082f52 100644
--- a/Drivers/Net/MarvellYukonDxe/if_msk.c
+++ b/Drivers/Net/MarvellYukonDxe/if_msk.c
@@ -585,6 +585,7 @@ msk_newbuf (
if (EFI_ERROR (Status)) {
return Status;
}
+ gBS->SetMem (Buffer, Length, 0);
Status = mPciIo->Map (mPciIo, EfiPciIoOperationBusMasterWrite, Buffer, &Length, &PhysAddr, &Mapping);
if (EFI_ERROR (Status)) {