[PATCH i-g-t 2/3] lib/xe/xe_mmio: Fix assertion logic in xe_mmio_vf_access_init
Marcin Bernatowicz
marcin.bernatowicz at linux.intel.com
Wed Sep 4 08:47:00 UTC 2024
Ensure igt_mmio is not null before proceeding.
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski at intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
Cc: K V P Satyanarayana <satyanarayana.k.v.p at intel.com>
Cc: C V Narasimha <narasimha.c.v at intel.com>
---
lib/xe/xe_mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/xe/xe_mmio.c b/lib/xe/xe_mmio.c
index 57526d7cb..3e42b2e1c 100644
--- a/lib/xe/xe_mmio.c
+++ b/lib/xe/xe_mmio.c
@@ -25,7 +25,7 @@ void xe_mmio_vf_access_init(int pf_fd, int vf_id, struct xe_mmio *mmio)
intel_mmio_use_pci_bar(&mmio->intel_mmio, pci_dev);
- igt_assert(!mmio->intel_mmio.igt_mmio);
+ igt_assert(mmio->intel_mmio.igt_mmio);
mmio->fd = pf_fd;
mmio->intel_mmio.safe = false;
--
2.31.1
More information about the igt-dev
mailing list