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

Commit 9a9c1f23 authored by Eric Holmberg's avatar Eric Holmberg
Browse files

trace: ipc_logging: reset completion instead of reinitializing



init_completion() is being used to reinitialize the read completion
which will cause problems if complete_all() is ever used.

Use INIT_COMPLETION instead of init_completion() to reinitialize
the completion.

Change-Id: I33a78559d9debb6c90a039bd9f22f391c6c15f27
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent e388465c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -520,7 +520,7 @@ int ipc_log_extract(void *ctxt, char *buff, int size)
		spin_lock(&ilctxt->context_lock_lhb1);
	}
	if ((size - dctxt.size) == 0)
		init_completion(&ilctxt->read_avail);
		INIT_COMPLETION(ilctxt->read_avail);
	spin_unlock(&ilctxt->context_lock_lhb1);
	read_unlock_irqrestore(&context_list_lock_lha1, flags);
	return size - dctxt.size;