From 91e46e595d535ebb7e64b873120eb219c928c037 Mon Sep 17 00:00:00 2001 From: leonidk Date: Mon, 10 Apr 2006 09:40:11 +0000 Subject: [PATCH] [MTHCA] allows user-mode clients to work without the kernel bypass provider git-svn-id: svn://openib.tc.cornell.edu/gen1@301 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/hw/mthca/kernel/mthca_provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/hw/mthca/kernel/mthca_provider.c b/trunk/hw/mthca/kernel/mthca_provider.c index 3c6dcb22..c5ed497b 100644 --- a/trunk/hw/mthca/kernel/mthca_provider.c +++ b/trunk/hw/mthca/kernel/mthca_provider.c @@ -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))) { -- 2.41.0