We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeaa057 commit 4405acfCopy full SHA for 4405acf
drivers/infiniband/hw/bnxt_re/qplib_res.c
@@ -121,13 +121,15 @@ static int __alloc_pbl(struct bnxt_qplib_res *res,
121
pbl->pg_arr = vmalloc_array(pages, sizeof(void *));
122
if (!pbl->pg_arr)
123
return -ENOMEM;
124
+ memset(pbl->pg_arr, 0, pages * sizeof(void *));
125
126
pbl->pg_map_arr = vmalloc_array(pages, sizeof(dma_addr_t));
127
if (!pbl->pg_map_arr) {
128
vfree(pbl->pg_arr);
129
pbl->pg_arr = NULL;
130
131
}
132
+ memset(pbl->pg_map_arr, 0, pages * sizeof(dma_addr_t));
133
pbl->pg_count = 0;
134
pbl->pg_size = sginfo->pgsize;
135
0 commit comments