Commit 4a593495 authored by Federico Vaga's avatar Federico Vaga

kernel: fix kmalloc flag

It may run in atomic context
Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent e370e002
......@@ -179,7 +179,7 @@ static struct wrnc_msg *wrnc_message_pop(struct wrnc_hmq *hmq)
uint32_t status;
int i;
msg = kmalloc(sizeof(struct wrnc_msg), GFP_KERNEL);
msg = kmalloc(sizeof(struct wrnc_msg), GFP_ATOMIC);
if (!msg)
return ERR_PTR(-ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment