Message ID | 20230507080839.37578-3-me@dylanvanassche.be (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | misc: fastrpc: FastRPC reserved memory assignment for SDM845 SLPI | expand |
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 423272bcbbf5..44763a95869b 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -939,7 +939,10 @@ static int fastrpc_get_args(u32 kernel, struct fastrpc_invoke_ctx *ctx) ctx->msg_sz = pkt_size; - err = fastrpc_buf_alloc(ctx->fl, dev, pkt_size, &ctx->buf); + if (ctx->fl->sctx->sid) + err = fastrpc_buf_alloc(ctx->fl, dev, pkt_size, &ctx->buf); + else + err = fastrpc_remote_heap_alloc(ctx->fl, dev, pkt_size, &ctx->buf); if (err) return err;