Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88519
b: refs/heads/master
c: 7ce5eac
h: refs/heads/master
i:
  88517: c89c771
  88515: abf143c
  88511: 8d5ba7b
v: v3
  • Loading branch information
Dotan Barak authored and Roland Dreier committed Apr 17, 2008
1 parent 6085e67 commit d81fffa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3b8128fd3b0966830ee90f1162173d07cb496a0
refs/heads/master: 7ce5eacb45a7c819a6bec6ed486f27db9aab6ab6
7 changes: 6 additions & 1 deletion trunk/drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ int ib_modify_srq(struct ib_srq *srq,
struct ib_srq_attr *srq_attr,
enum ib_srq_attr_mask srq_attr_mask)
{
return srq->device->modify_srq(srq, srq_attr, srq_attr_mask, NULL);
return srq->device->modify_srq ?
srq->device->modify_srq(srq, srq_attr, srq_attr_mask, NULL) :
-ENOSYS;
}
EXPORT_SYMBOL(ib_modify_srq);

Expand Down Expand Up @@ -672,6 +674,9 @@ struct ib_mr *ib_reg_phys_mr(struct ib_pd *pd,
{
struct ib_mr *mr;

if (!pd->device->reg_phys_mr)
return ERR_PTR(-ENOSYS);

mr = pd->device->reg_phys_mr(pd, phys_buf_array, num_phys_buf,
mr_access_flags, iova_start);

Expand Down

0 comments on commit d81fffa

Please sign in to comment.