summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gasket
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2018-09-17 05:38:58 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-18 13:22:01 +0200
commit45dd9954d903310f1fd8d5ac90d7faeca0694415 (patch)
tree683cd321e22110685b23ce2432338e6e3558d6c4 /drivers/staging/gasket
parent467976ff6e566a695c2964bb2ca24eba154a1d82 (diff)
downloadlinux-45dd9954d903310f1fd8d5ac90d7faeca0694415.tar.bz2
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>
Diffstat (limited to 'drivers/staging/gasket')
-rw-r--r--drivers/staging/gasket/gasket_page_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c
index 53492f4fad6a..71b77da2e18c 100644
--- a/drivers/staging/gasket/gasket_page_table.c
+++ b/drivers/staging/gasket/gasket_page_table.c
@@ -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;