Skip to content

Commit 75e54bb

Browse files
hoshinolinajannau
authored andcommitted
media: apple: isp: Zero out pages allocated to ISP
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 7e1e4cc commit 75e54bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/platform/apple/isp/isp-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static int isp_surf_alloc_pages(struct isp_surf *surf)
2222
return -ENOMEM;
2323

2424
for (u32 i = 0; i < surf->num_pages; i++) {
25-
surf->pages[i] = alloc_page(GFP_KERNEL);
25+
surf->pages[i] = alloc_page(GFP_KERNEL | __GFP_ZERO);
2626
if (surf->pages[i] == NULL)
2727
goto free_pages;
2828
}

0 commit comments

Comments
 (0)