mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: In qdf malloc use GFP_ATOMIC if in_atomic is set
Currently GFP_KERNEL flag is used to get memory in qdf malloc even if in_atomic is set. So in qdf malloc use GFP_ATOMIC if in_atomic is set. Change-Id: I1992ab4f6c868fcc18285c5cca9c9997433936bf CRs-Fixed: 1117206
This commit is contained in:
parent
2d243db063
commit
f71721f8ae
1 changed files with 1 additions and 1 deletions
|
|
@ -1086,7 +1086,7 @@ void *qdf_mem_malloc(size_t size)
|
|||
{
|
||||
int flags = GFP_KERNEL;
|
||||
|
||||
if (in_interrupt() || irqs_disabled())
|
||||
if (in_interrupt() || irqs_disabled() || in_atomic())
|
||||
flags = GFP_ATOMIC;
|
||||
|
||||
return kzalloc(size, flags);
|
||||
|
|
|
|||
Loading…
Reference in a new issue