Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45107
b: refs/heads/master
c: 9d79f1b
h: refs/heads/master
i:
  45105: 0ff36ba
  45103: 37143e9
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Linus Torvalds committed Dec 30, 2006
1 parent f124adf commit f49344d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 31f87cf48d54f5930e6e8e827989c18b0069c94a
refs/heads/master: 9d79f1b4677cfe503f721000529f1462ca7b6f6d
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,10 +1100,11 @@ static struct ib_fmr *mthca_alloc_fmr(struct ib_pd *pd, int mr_access_flags,
struct mthca_fmr *fmr;
int err;

fmr = kmemdup(fmr_attr, sizeof *fmr, GFP_KERNEL);
fmr = kmalloc(sizeof *fmr, GFP_KERNEL);
if (!fmr)
return ERR_PTR(-ENOMEM);

memcpy(&fmr->attr, fmr_attr, sizeof *fmr_attr);
err = mthca_fmr_alloc(to_mdev(pd->device), to_mpd(pd)->pd_num,
convert_access(mr_access_flags), fmr);

Expand Down

0 comments on commit f49344d

Please sign in to comment.