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

Commit de5c5c76 authored by Steven Cahail's avatar Steven Cahail
Browse files

drivers: qcom: ipc: Initialize PIL handle in error case



When loading either a non-modem image or when PIL returns an error,
the PIL handle is left uninitialized. This results in a kernel
panic when the handle is used to do a PIL unload.

Initialize the pil handle in this error case to avoid kernel panic.

CRs-Fixed: 636748
Change-Id: I83fb2ff822851e0b5a35cb32b440671b46068d85
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent b5c75c4d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -578,6 +578,8 @@ static void pil_vote_load_worker(struct work_struct *work)
				__func__, peripheral);
			vote_info->pil_handle = NULL;
		}
	} else {
		vote_info->pil_handle = NULL;
	}
}

+1 −0
Original line number Diff line number Diff line
@@ -292,6 +292,7 @@ static int msm_ipc_router_create(struct net *net,
	sk->sk_rcvtimeo = DEFAULT_RCV_TIMEO;

	msm_ipc_sk(sk)->port = port_ptr;
	msm_ipc_sk(sk)->default_node_vote_info = NULL;

	return 0;
}