From: Todd Poynor Date: Mon, 17 Sep 2018 12:38:58 +0000 (-0700) Subject: staging: gasket: page table: use GFP_KERNEL for dma_alloc_coherent X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=45dd9954d903310f1fd8d5ac90d7faeca0694415;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 53492f4fad6aa..71b77da2e18ca 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;