mirror of https://github.com/acidanthera/audk.git
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:
parent
0c2a486078
commit
28daafe0ad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue