pci: fix 'ALL' policy rule handling

Related to #1541.

Fixes #1559
This commit is contained in:
Alexander Boettcher 2015-06-04 09:36:05 +02:00 committed by Christian Helmuth
parent 65837e8ae9
commit 8ccac9a3bb

View File

@ -240,7 +240,7 @@ namespace Pci {
enum { DONT_CHECK_PROGIF = 8 }; enum { DONT_CHECK_PROGIF = 8 };
/* if class/subclass don't match - deny */ /* 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; return;
/* if this bdf is used by some policy - deny */ /* if this bdf is used by some policy - deny */