Message ID | 1474367764-9555-13-git-send-email-Ram.Amrani@cavium.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index f2b776e..8cc6f79 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -1400,6 +1400,9 @@ struct ib_mr *ib_get_dma_mr(struct ib_pd *pd, int mr_access_flags) if (err) return ERR_PTR(err); + if (mr_access_flags & IB_ACCESS_MW_BIND) + return ERR_PTR(-EINVAL); + mr = pd->device->get_dma_mr(pd, mr_access_flags); if (!IS_ERR(mr)) {