Message ID | 20220504223950.2372905-1-nobelbarakat@google.com |
---|---|
State | New |
Headers | show |
Series | [5.4] block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern | expand |
diff --git a/block/bio.c b/block/bio.c index b1170ec18464..363294afc394 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1570,7 +1570,7 @@ struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len, if (bytes > len) bytes = len; - page = alloc_page(q->bounce_gfp | gfp_mask); + page = alloc_page(q->bounce_gfp | __GFP_ZERO | gfp_mask); if (!page) goto cleanup;