mlx4: fix status checkmlx4: fix status check
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:17:52 +0000 (19:17 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:17:52 +0000 (19:17 +0000)
ibv_um_open returns IB_API_STATUS, not NTSTATUS.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2124 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/hca/vp.c

index 9fb6cba..646d01f 100644 (file)
@@ -80,7 +80,7 @@ mlnx_um_open(
        }\r
 \r
        status = ibv_um_open( p_ibdev, p_umv_buf, &p_uctx );\r
        }\r
 \r
        status = ibv_um_open( p_ibdev, p_umv_buf, &p_uctx );\r
-       if (!NT_SUCCESS(status)) {\r
+       if (status != IB_SUCCESS) {\r
                goto end;\r
        }\r
        \r
                goto end;\r
        }\r
        \r