From: leonidk Date: Mon, 10 Apr 2006 09:40:11 +0000 (+0000) Subject: [MTHCA] allows user-mode clients to work without the kernel bypass provider X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=91e46e595d535ebb7e64b873120eb219c928c037;p=~shefty%2Frdma-win.git [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 --- 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))) {