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
Esse commit está contido em:
Abhishek Singh
2017-02-02 11:06:09 +05:30
commit de qcabuildsw
commit f71721f8ae

Ver arquivo

@@ -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);