Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aefefe92 authored by Scott Jiang's avatar Scott Jiang Committed by Steven Miao
Browse files

pm: use GFP_ATOMIC when pm core call this function



We shouldn't sleep in atomic sections.

Signed-off-by: default avatarScott Jiang <scott.jiang.linux@gmail.com>
parent eb06c064
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,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");