Commit 894efd31 authored by Anandu Krishnan E's avatar Anandu Krishnan E Committed by Greg Kroah-Hartman
Browse files

misc: fastrpc: Deregister device nodes properly in error scenarios



commit 637c2000 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: 3abe3ab3 ("misc: fastrpc: add secure domain support")
Cc: stable@kernel.org
Signed-off-by: default avatarAnandu Krishnan E <quic_anane@quicinc.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20250110134239.123603-2-srinivas.kandagatla@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e56db83b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment