kmalloc(..., GFP_KERNEL) -> kmalloc(..., GFP_ATOMIC)
cause executed in handlers
Change-Id: If89c5807d96fee9137fb8b0919b7ed4428772ab6
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
static inline int __add_to_disable_list(struct thread_slot *slot,
unsigned long disable_addr)
{
- struct disabled_addr *da = kmalloc(sizeof(*da), GFP_KERNEL);
+ struct disabled_addr *da = kmalloc(sizeof(*da), GFP_ATOMIC);
if (da == NULL)
return -ENOMEM;
/* Adds a new slot */
static inline struct thread_slot *__grow_slot(void)
{
- struct thread_slot *tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
+ struct thread_slot *tmp = kmalloc(sizeof(*tmp), GFP_ATOMIC);
if (tmp == NULL)
return NULL;