Message ID | 1459946427-15771-6-git-send-email-lersek@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.c b/OvmfPkg/VirtioRngDxe/VirtioRng.c index 290bddeeecae..d916534aac63 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.c +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.c @@ -290,15 +290,16 @@ VirtioRngInit ( } // // step 5 -- Report understood features and guest-tuneables. None are // 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; } // // step 6 -- initialization complete //