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

Commit 6d907fd9 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

firmware: avoid invalid fallback aborts by using killable wait



Commit <02342e8b12b969d>("firmware: avoid invalid fallback aborts by
using killable swait") switches to killable swait in order to prevent
erroneous signals such as SIGCHLD from causing the kernel to think
that the userspace daemon has unsuccessful in writing the firmware.

Since the above commit changes modified APIs in firmware code, mirror
the same behavior on our older firmware_class version.

Change-Id: Ie06a36bf229e62bb77e473d43bfdc37f3f16c808
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 3d3872ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1113,7 +1113,7 @@ static int _request_firmware_load(struct firmware_priv *fw_priv,
		timeout = MAX_JIFFY_OFFSET;
	}

	timeout = wait_for_completion_interruptible_timeout(&buf->completion,
	timeout = wait_for_completion_killable_timeout(&buf->completion,
			timeout);
	if (timeout == -ERESTARTSYS || !timeout) {
		retval = timeout;