Skip to content

Commit 5023adc

Browse files
error27gregkh
authored andcommitted
misc: fastrpc: fix error code in fastrpc_req_mmap()
The "err" variable shadows an earlier global variable so this code returns success instead of a negative error code. Fixes: 532ad70 ("misc: fastrpc: Add mmap request assigning for static PD pool") Signed-off-by: Dan Carpenter <error27@gmail.com> Link: https://lore.kernel.org/r/Y4XUrMETCl1O6t0A@kili Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0c4d682 commit 5023adc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/misc/fastrpc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,6 @@ static int fastrpc_req_mmap(struct fastrpc_user *fl, char __user *argp)
18941894
/* Add memory to static PD pool, protection thru hypervisor */
18951895
if (req.flags != ADSP_MMAP_REMOTE_HEAP_ADDR && fl->cctx->vmcount) {
18961896
struct qcom_scm_vmperm perm;
1897-
int err = 0;
18981897

18991898
perm.vmid = QCOM_SCM_VMID_HLOS;
19001899
perm.perm = QCOM_SCM_PERM_RWX;

0 commit comments

Comments
 (0)