diff --git a/drivers/nvme/nvme.asm b/drivers/nvme/nvme.asm index 616d318..13b98e5 100644 --- a/drivers/nvme/nvme.asm +++ b/drivers/nvme/nvme.asm @@ -52,6 +52,8 @@ local AnythingLoadedSuccessfully db 0 jz .err xor ebx, ebx mov esi, dword [p_nvme_devices] + test esi, esi + jz .err sub esi, sizeof.pcidev .loop: