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>
This commit is contained in:
Laszlo Ersek 2016-03-12 01:54:57 +01:00
parent 0c2a486078
commit 28daafe0ad
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}