mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
firewire: Get zeroed out pages for mapping to user space.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
cb2d2cdbc6
commit
68be3fa15a
@ -44,7 +44,7 @@ fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
for (i = 0; i < buffer->page_count; i++) {
|
for (i = 0; i < buffer->page_count; i++) {
|
||||||
buffer->pages[i] = alloc_page(GFP_KERNEL | GFP_DMA32);
|
buffer->pages[i] = alloc_page(GFP_KERNEL | GFP_DMA32 | __GFP_ZERO);
|
||||||
if (buffer->pages[i] == NULL)
|
if (buffer->pages[i] == NULL)
|
||||||
goto out_pages;
|
goto out_pages;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user