Skip to content

Commit 637c200

Browse files
quic-ananegregkh
authored andcommitted
misc: fastrpc: Deregister device nodes properly in error scenarios
During fastrpc_rpmsg_probe, if secure device node registration succeeds but non-secure device node registration fails, the secure device node deregister is not called during error cleanup. Add proper exit paths to ensure proper cleanup in case of error. Fixes: 3abe3ab ("misc: fastrpc: add secure domain support") Cc: stable@kernel.org Signed-off-by: Anandu Krishnan E <quic_anane@quicinc.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20250110134239.123603-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 31507fc commit 637c200

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/misc/fastrpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
23462346

23472347
err = fastrpc_device_register(rdev, data, false, domains[domain_id]);
23482348
if (err)
2349-
goto fdev_error;
2349+
goto populate_error;
23502350
break;
23512351
default:
23522352
err = -EINVAL;

0 commit comments

Comments
 (0)