mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "msm: adsprpc: prevent use-after-free from fastrpc ctx"
This commit is contained in:
commit
47b5189297
1 changed files with 2 additions and 1 deletions
|
|
@ -2589,7 +2589,8 @@ static int fastrpc_invoke_send(struct smq_invoke_ctx *ctx,
|
|||
}
|
||||
err = rpmsg_send(channel_ctx->rpdev->ept, (void *)msg, sizeof(*msg));
|
||||
trace_fastrpc_rpmsg_send(fl->cid, (uint64_t)ctx, msg->invoke.header.ctx,
|
||||
handle, ctx->sc, msg->invoke.page.addr, msg->invoke.page.size);
|
||||
handle, msg->invoke.header.sc, msg->invoke.page.addr,
|
||||
msg->invoke.page.size);
|
||||
mutex_unlock(&channel_ctx->rpmsg_mutex);
|
||||
bail:
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue