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

Commit 1eb1237f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents f02cf8f6 85f84605
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;