staging: gasket: page table: use GFP_KERNEL for dma_alloc_coherent

Flags should be specified for dma_alloc_coherent() call.  Use
GFP_KERNEL, it's fine to sleep here.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Todd Poynor 2018-09-17 05:38:58 -07:00 committed by Greg Kroah-Hartman
parent 467976ff6e
commit 45dd9954d9
1 changed files with 1 additions and 1 deletions

View File

@ -1287,7 +1287,7 @@ int gasket_alloc_coherent_memory(struct gasket_dev *gasket_dev, u64 size,
return -EINVAL;
mem = dma_alloc_coherent(gasket_get_device(gasket_dev),
num_pages * PAGE_SIZE, &handle, 0);
num_pages * PAGE_SIZE, &handle, GFP_KERNEL);
if (!mem)
goto nomem;