]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: fastrpc: Deregister device nodes properly in error scenarios
authorAnandu Krishnan E <quic_anane@quicinc.com>
Fri, 10 Jan 2025 13:42:37 +0000 (13:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:52 +0000 (13:49 +0100)
commit894efd31d02a4d432ddc1b87420e0a20fbbde4ac
tree6f7359c24dd0c349e62cb9e97edfa09585611f0a
parente56db83b32cd690634ecb48daf56e84ba61d3307
misc: fastrpc: Deregister device nodes properly in error scenarios

commit 637c20002dc8c347001292664055bfbf56544ec6 upstream.

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>
drivers/misc/fastrpc.c