qcacmn: use kzalloc for memory instead of kmalloc
Try to request memory using kzalloc instead of kmalloc. Change-Id: Ib35097f76257733b3663c112b8255b587ff19bd6 CRs-Fixed: 2706674
This commit is contained in:

committad av
nshrivas

förälder
6d694b9f56
incheckning
d83a21ba68
@@ -33,10 +33,10 @@
|
||||
#define __can_sleep() \
|
||||
(!in_interrupt() && !irqs_disabled() && !in_atomic())
|
||||
|
||||
#define __zalloc_sleeps(size) kmalloc(size, GFP_KERNEL)
|
||||
#define __zalloc_atomic(size) kmalloc(size, GFP_ATOMIC)
|
||||
#define __zalloc_sleeps(size) kzalloc(size, GFP_KERNEL)
|
||||
#define __zalloc_atomic(size) kzalloc(size, GFP_ATOMIC)
|
||||
#define __zalloc_auto(size) \
|
||||
kmalloc(size, __can_sleep() ? GFP_KERNEL : GFP_ATOMIC)
|
||||
kzalloc(size, __can_sleep() ? GFP_KERNEL : GFP_ATOMIC)
|
||||
|
||||
#define __free(ptr) kfree(ptr)
|
||||
|
||||
|
Referens i nytt ärende
Block a user