diff --git a/repos/os/src/drivers/pci/pci_session_component.h b/repos/os/src/drivers/pci/pci_session_component.h index e1c08eeda3..22af4ecc13 100644 --- a/repos/os/src/drivers/pci/pci_session_component.h +++ b/repos/os/src/drivers/pci/pci_session_component.h @@ -240,7 +240,7 @@ namespace Pci { enum { DONT_CHECK_PROGIF = 8 }; /* if class/subclass don't match - deny */ - if ((class_sub_prog ^ class_code) >> DONT_CHECK_PROGIF) + if (class_sub_prog && (class_sub_prog ^ class_code) >> DONT_CHECK_PROGIF) return; /* if this bdf is used by some policy - deny */