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

This commit is contained in:
qctecmdr 2020-07-21 09:43:23 -07:00 • committed by Gerrit - the friendly Code Review server
commit 1eb1237f1e

View file

@ -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;