From 28daafe0add87f9857a4881d0d644a4b033f2168 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 12 Mar 2016 01:54:57 +0100 Subject: OvmfPkg: VirtioRngDxe: clear all feature bits more explicitly This too is in preparation for the following patches. After this patch, all four drivers manage their feature bits with explicit masking. Cc: Ard Biesheuvel Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Jordan Justen --- OvmfPkg/VirtioRngDxe/VirtioRng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OvmfPkg/VirtioRngDxe') diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.c b/OvmfPkg/VirtioRngDxe/VirtioRng.c index 290bddeeec..d916534aac 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.c +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.c @@ -294,7 +294,8 @@ VirtioRngInit ( // currently defined for VirtioRng, and no generic features are needed by // this driver. // - Status = Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, 0); + Features &= 0; + Status = Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, Features); if (EFI_ERROR (Status)) { goto ReleaseQueue; } -- cgit v1.2.3