[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/trunk@301 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_provider.c

index 3c6dcb2..c5ed497 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))) {