mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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:
parent
467976ff6e
commit
45dd9954d9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue