misc: fastrpc: fix error code in fastrpc_req_mmap()
authorDan Carpenter <error27@gmail.com>
Tue, 29 Nov 2022 09:45:16 +0000 (12:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:22:11 +0000 (13:22 +0100)
commit5023adc364df004bd8e57afe89a4bd8019485c3d
tree7de015d4c2e68e3ca5fe0303538adb14a5930b49
parent0c4d68261717f89fa8c4f98a6967c3832fcb3ad0
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: 532ad70c6d44 ("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>
drivers/misc/fastrpc.c