From 19c2a928055897cfe24e6badb8d43516ce377092 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 12 Sep 2019 23:27:56 +0200 Subject: OvmfPkg/VirtioNetDxe: fix SignalEvent() call The SignalEvent() boot service takes an EFI_EVENT, not an (EFI_EVENT*). Fix the call in the notification function of "EFI_SIMPLE_NETWORK_PROTOCOL.WaitForPacket". This is an actual bug. The reason it's never been triggered is likely that the "SNP.WaitForPacket" event is rarely waited for by applications -- edk2 itself has zero instances of that, for example. Cc: Ard Biesheuvel Cc: Jordan Justen Signed-off-by: Laszlo Ersek Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Ard Biesheuvel --- OvmfPkg/VirtioNetDxe/Events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/VirtioNetDxe/Events.c b/OvmfPkg/VirtioNetDxe/Events.c index 620910774b..83e96e5e5d 100644 --- a/OvmfPkg/VirtioNetDxe/Events.c +++ b/OvmfPkg/VirtioNetDxe/Events.c @@ -58,7 +58,7 @@ VirtioNetIsPacketAvailable ( MemoryFence (); if (Dev->RxLastUsed != RxCurUsed) { - gBS->SignalEvent (&Dev->Snp.WaitForPacket); + gBS->SignalEvent (Dev->Snp.WaitForPacket); } } -- cgit v1.2.3