Commit ae36e1e2 authored by Scott Jiang's avatar Scott Jiang Committed by Jiri Slaby

pm: use GFP_ATOMIC when pm core call this function

commit aefefe92 upstream.

We shouldn't sleep in atomic sections.
Signed-off-by: default avatarScott Jiang <scott.jiang.linux@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 39c9944a
......@@ -144,7 +144,7 @@ int bfin_pm_suspend_mem_enter(void)
unsigned char *memptr = kmalloc(L1_CODE_LENGTH + L1_DATA_A_LENGTH
+ L1_DATA_B_LENGTH + L1_SCRATCH_LENGTH,
GFP_KERNEL);
GFP_ATOMIC);
if (memptr == NULL) {
panic("bf53x_suspend_l1_mem malloc failed");
......
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