Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343691
b: refs/heads/master
c: 7d9c199
h: refs/heads/master
i:
  343689: dd93091
  343687: 66f1e54
v: v3
  • Loading branch information
Tatyana Nikolova authored and Roland Dreier committed Dec 8, 2012
1 parent 77ac326 commit 610c396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7bfcfa51c35cdd2d37e0d70fc11790642dd11fb3
refs/heads/master: 7d9c199a55200c9b9fcad08e150470d02fb385be
5 changes: 5 additions & 0 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2561,6 +2561,11 @@ static struct ib_mr *nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
return ibmr;
case IWNES_MEMREG_TYPE_QP:
case IWNES_MEMREG_TYPE_CQ:
if (!region->length) {
nes_debug(NES_DBG_MR, "Unable to register zero length region for CQ\n");
ib_umem_release(region);
return ERR_PTR(-EINVAL);
}
nespbl = kzalloc(sizeof(*nespbl), GFP_KERNEL);
if (!nespbl) {
nes_debug(NES_DBG_MR, "Unable to allocate PBL\n");
Expand Down

0 comments on commit 610c396

Please sign in to comment.