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 bb93bd4 commit 791daf8Copy full SHA for 791daf8
drivers/infiniband/core/umem_odp.c
@@ -78,12 +78,14 @@ static inline int ib_init_umem_odp(struct ib_umem_odp *umem_odp,
78
79
npfns = (end - start) >> PAGE_SHIFT;
80
umem_odp->pfn_list = kvcalloc(
81
- npfns, sizeof(*umem_odp->pfn_list), GFP_KERNEL);
+ npfns, sizeof(*umem_odp->pfn_list),
82
+ GFP_KERNEL | __GFP_NOWARN);
83
if (!umem_odp->pfn_list)
84
return -ENOMEM;
85
86
umem_odp->dma_list = kvcalloc(
- ndmas, sizeof(*umem_odp->dma_list), GFP_KERNEL);
87
+ ndmas, sizeof(*umem_odp->dma_list),
88
89
if (!umem_odp->dma_list) {
90
ret = -ENOMEM;
91
goto out_pfn_list;
0 commit comments