[mlx4] Fix error path on create qp.
[mirror/winof/.git] / hw / mlx4 / kernel / bus / drv / pci.c
index b8c0e6c..04682c2 100644 (file)
@@ -600,6 +600,8 @@ pci_hca_reset(
 \r
        MLX4_ENTER( MLX4_DBG_PNP );\r
 \r
+       ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);\r
+\r
        /* save Card Config Space including MSI-X capabilities */\r
        pci_get_msi_info( pdev, p_cfg, &pdev->uplink_info );\r
 \r
@@ -722,6 +724,7 @@ err:
        if (pdev->msix_info.valid) \r
                pci_free_msix_info_resources(&pdev->msix_info);\r
        MLX4_EXIT( MLX4_DBG_PNP );\r
+       ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);\r
        return status;\r
 }\r
 \r