IB/core: Guarantee that a local_dma_lkey is available
[cascardo/linux.git] / drivers / infiniband / core / uverbs_cmd.c
index bbb02ff..258485e 100644 (file)
@@ -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->local_mr = NULL;
        atomic_set(&pd->usecnt, 0);
 
        uobj->object = pd;