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