mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
msm: adsprpc: Remove remote mappings after PD is up
Currently before staticPD on QDSP is up, remote mappings are being removed. Instead, remove the mappings after staticPD is up. Change-Id: I10a37b4c840dbd830f7b8897aabbf8681329b74c Acked-by: Vishnu Karthik D <vikarthi@qti.qualcomm.com> Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
This commit is contained in:
parent
453686cea6
commit
95aed7d580
1 changed files with 5 additions and 5 deletions
|
|
@ -3132,6 +3132,11 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
|
|||
VERIFY(err, cid == fl->cid);
|
||||
if (err)
|
||||
goto bail;
|
||||
if (!me->channel[fl->cid].spd[session].ispdup &&
|
||||
me->channel[fl->cid].spd[session].pdrhandle) {
|
||||
err = -ENOTCONN;
|
||||
goto bail;
|
||||
}
|
||||
if (me->channel[fl->cid].spd[session].pdrcount !=
|
||||
me->channel[fl->cid].spd[session].prevpdrcount) {
|
||||
err = fastrpc_mmap_remove_ssr(fl);
|
||||
|
|
@ -3141,11 +3146,6 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
|
|||
me->channel[fl->cid].spd[session].prevpdrcount =
|
||||
me->channel[fl->cid].spd[session].pdrcount;
|
||||
}
|
||||
if (!me->channel[fl->cid].spd[session].ispdup &&
|
||||
me->channel[fl->cid].spd[session].pdrhandle) {
|
||||
err = -ENOTCONN;
|
||||
goto bail;
|
||||
}
|
||||
bail:
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue