mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "msm: adsprpc: Remove remote mappings after PD is up"
This commit is contained in:
commit
737f2f1603
1 changed files with 5 additions and 5 deletions
|
|
@ -3137,6 +3137,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);
|
||||
|
|
@ -3146,11 +3151,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