Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 3abe3ab3cdab ("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>

authored by

Anandu Krishnan E and committed by
Greg Kroah-Hartman
637c2000 31507fc2

+1 -1
+1 -1
drivers/misc/fastrpc.c
··· 2346 2346 2347 2347 err = fastrpc_device_register(rdev, data, false, domains[domain_id]); 2348 2348 if (err) 2349 - goto fdev_error; 2349 + goto populate_error; 2350 2350 break; 2351 2351 default: 2352 2352 err = -EINVAL;