Skip to content

Commit e2c354b

Browse files
committed
Revert "FROMLIST: misc: fastrpc: Fix initial memory allocation for Audio PD memory pool"
This change corresponds to the v4 version shared with the upstream community. Revert it to apply the complete v6 revision, which includes additional fixes and updates not present in the earlier version. This reverts commit 9dcad42. Signed-off-by: Vinayak Katoch <vkatoch@qti.qualcomm.com>
1 parent 17fc1b7 commit e2c354b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/misc/fastrpc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,9 +1488,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_user *fl,
14881488
err = PTR_ERR(name);
14891489
goto err;
14901490
}
1491-
inbuf.client_id = fl->client_id;
1492-
inbuf.namelen = init.namelen;
1493-
inbuf.pageslen = 0;
1491+
14941492
if (!fl->cctx->remote_heap) {
14951493
err = fastrpc_remote_heap_alloc(fl, fl->sctx->dev, init.memlen,
14961494
&fl->cctx->remote_heap);
@@ -1513,10 +1511,12 @@ static int fastrpc_init_create_static_process(struct fastrpc_user *fl,
15131511
goto err_map;
15141512
}
15151513
scm_done = true;
1516-
inbuf.pageslen = 1;
15171514
}
15181515
}
15191516

1517+
inbuf.client_id = fl->client_id;
1518+
inbuf.namelen = init.namelen;
1519+
inbuf.pageslen = 0;
15201520
fl->pd = USER_PD;
15211521

15221522
args[0].ptr = (u64)(uintptr_t)&inbuf;

0 commit comments

Comments
 (0)