qe: Use GFP_ATOMIC while spin_lock_irqsave is held

cpm_muram_alloc_common is called twice and both the times
spin_lock_irqsave is held.
Using GFP_KERNEL can sleep in spin_lock_irqsave context and cause
deadlock

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
This commit is contained in:
Saurabh Sengar 2016-01-24 12:24:06 +05:30 committed by Scott Wood
parent 713df30bd9
commit 66923a60ad
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ static unsigned long cpm_muram_alloc_common(unsigned long size,
goto out2;
start = start - GENPOOL_OFFSET;
memset_io(cpm_muram_addr(start), 0, size);
entry = kmalloc(sizeof(*entry), GFP_KERNEL);
entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
if (!entry)
goto out1;
entry->start = start;