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

Commit 67e3c486 authored by Zhenhua Huang's avatar Zhenhua Huang Committed by Gerrit - the friendly Code Review server
Browse files

tracing: Avoid sleep in atomic context



Make alloc flags from GFP_KERNEL to GFP_ATOMIC.

CRs-Fixed: 2301673
Change-Id: I572ab5956c38366c23e29961d6736283ff4932ce
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent 315bb5ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4678,7 +4678,7 @@ tracing_saved_tgids_read(struct file *file, char __user *ubuf,
	preempt_disable();
	arch_spin_lock(&trace_cmdline_lock);

	pids = kmalloc_array(savedcmd->cmdline_num, 2*sizeof(int), GFP_KERNEL);
	pids = kmalloc_array(savedcmd->cmdline_num, 2*sizeof(int), GFP_ATOMIC);
	if (!pids) {
		arch_spin_unlock(&trace_cmdline_lock);
		preempt_enable();