summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioRngDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-12 01:54:57 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-04-06 13:04:04 +0200
commit28daafe0add87f9857a4881d0d644a4b033f2168 (patch)
treec92928deeb27c0648f7a7f79cad440fbca97cf78 /OvmfPkg/VirtioRngDxe
parent0c2a486078ff28414209281b7d39197b89e0d81f (diff)
downloadedk2-28daafe0add87f9857a4881d0d644a4b033f2168.tar.gz
edk2-28daafe0add87f9857a4881d0d644a4b033f2168.tar.bz2
edk2-28daafe0add87f9857a4881d0d644a4b033f2168.zip
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 <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/VirtioRngDxe')
-rw-r--r--OvmfPkg/VirtioRngDxe/VirtioRng.c3
1 files changed, 2 insertions, 1 deletions
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;
}