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: [email protected] Signed-off-by: Anandu Krishnan E <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 31507fc commit 637c200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)