]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
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@2124 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mlx4/kernel/hca/vp.c

index 9fb6cba27798e0a2b0bb9abf4c434745f066198f..646d01f24d3783f4d95d5fe9b310200b270bb69f 100644 (file)
@@ -80,7 +80,7 @@ mlnx_um_open(
        }\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