projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IB/core: Guarantee that a local_dma_lkey is available
[cascardo/linux.git]
/
drivers
/
infiniband
/
core
/
uverbs_cmd.c
diff --git
a/drivers/infiniband/core/uverbs_cmd.c
b/drivers/infiniband/core/uverbs_cmd.c
index
bbb02ff
..
258485e
100644
(file)
--- a/
drivers/infiniband/core/uverbs_cmd.c
+++ b/
drivers/infiniband/core/uverbs_cmd.c
@@
-562,6
+562,7
@@
ssize_t ib_uverbs_alloc_pd(struct ib_uverbs_file *file,
pd->device = file->device->ib_dev;
pd->uobject = uobj;
pd->device = file->device->ib_dev;
pd->uobject = uobj;
+ pd->local_mr = NULL;
atomic_set(&pd->usecnt, 0);
uobj->object = pd;
atomic_set(&pd->usecnt, 0);
uobj->object = pd;