Add missing if condition for vfio

This commit is contained in:
Luke D Jones
2021-04-03 12:20:56 +13:00
parent 2dc70ea6af
commit fc3d7653f5
3 changed files with 5 additions and 2 deletions

View File

@@ -623,7 +623,7 @@ impl CtrlGraphics {
false
};
if !vfio_enable {
if !vfio_enable && matches!(vendor, GfxVendors::Vfio) {
return Err(GfxError::VfioDisabled.into());
}