Skip to content

Commit c08004e

Browse files
author
Christoph Hellwig
committed
s390/ism: don't pass bogus GFP_ flags to dma_alloc_coherent
dma_alloc_coherent is an opaque allocator that only uses the GFP_ flags for allocation context control. Don't pass __GFP_COMP which makes no sense for an allocation that can't in any way be converted to a page pointer. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Wenjia Zhang <[email protected]>
1 parent bb73955 commit c08004e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/s390/net/ism_drv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ static int ism_alloc_dmb(struct ism_dev *ism, struct smcd_dmb *dmb)
243243

244244
dmb->cpu_addr = dma_alloc_coherent(&ism->pdev->dev, dmb->dmb_len,
245245
&dmb->dma_addr,
246-
GFP_KERNEL | __GFP_NOWARN | __GFP_NOMEMALLOC | __GFP_COMP | __GFP_NORETRY);
246+
GFP_KERNEL | __GFP_NOWARN |
247+
__GFP_NOMEMALLOC | __GFP_NORETRY);
247248
if (!dmb->cpu_addr)
248249
clear_bit(dmb->sba_idx, ism->sba_bitmap);
249250

0 commit comments

Comments
 (0)