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

Commit 7fb712cb authored by Swathi K's avatar Swathi K
Browse files

msm : adsprpc : Reject unsigned PD session



Reject unsigned PD session from driver instead of
reject the connection from DSP to avoid resource allocation.

Change-Id: Ic07aa43c984300b5778609cc89f729e891c61384
Signed-off-by: default avatarSwathi K <kataka@codeaurora.org>
parent 629f8312
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3904,12 +3904,13 @@ static int fastrpc_init_process(struct fastrpc_file *fl,
			err = -ECONNREFUSED;
			goto bail;
		}
	} else if (!(chan->unsigned_support) && (uproc->attrs & FASTRPC_MODE_UNSIGNED_MODULE)) {
		err = -ECONNREFUSED;
		goto bail;
	}

	err = fastrpc_channel_open(fl);
	if (err)
		goto bail;

	switch (init->flags) {
	case FASTRPC_INIT_ATTACH:
	case FASTRPC_INIT_ATTACH_SENSORS: