]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MTHCA] allows user-mode clients to work without the kernel bypass provider
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Apr 2006 09:40:11 +0000 (09:40 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Apr 2006 09:40:11 +0000 (09:40 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@301 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mthca/kernel/mthca_provider.c

index 3c6dcb224b901369008af277dde42d716f0f82fe..c5ed497bd124f4bba805f39da3d2df402e47fd4f 100644 (file)
@@ -433,7 +433,7 @@ struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev,
                goto err_pd_alloc;
        }
 
-       if (p_umv_buf) {
+       if (p_umv_buf && p_umv_buf->command) {
                resp.pd_handle = (u64)(UINT_PTR)pd;
                resp.pdn = pd->pd_num;
                if (ib_copy_to_umv_buf(p_umv_buf, &resp, sizeof(struct ibv_alloc_pd_resp))) {