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

Commit 85f84605 authored by Himateja Reddy's avatar Himateja Reddy
Browse files

msm: adsprpc: use current PID instead of stored PID for validation



Use PID from task struct instead of PID stored during get info to
validate whether the calling process is a trusted application, so
that the sessions feature where the PID is tweaked for the second
session does not return a false failure.

Change-Id: I177283ccf2333b762148398e299e64d76dbc1926
Acked-by: default avatarThyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: default avatarHimateja Reddy <hmreddy@codeaurora.org>
parent 2f9b2b41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3211,7 +3211,7 @@ static int fastrpc_init_create_dynamic_process(struct fastrpc_file *fl,
	 * apps are not allowed to offload to signedPD on DSP. This is detected
	 * by comparing current PID with the one stored during device open.
	 */
	if (fl->tgid != fl->tgid_open) {
	if (current->tgid != fl->tgid_open) {
		VERIFY(err, uproc->attrs & FASTRPC_MODE_UNSIGNED_MODULE);
		if (err) {
			err = -EINVAL;