]> git.baikalelectronics.ru Git - kernel.git/commit
misc: fastrpc: Fix an error handling path in fastrpc_rpmsg_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 25 Nov 2022 17:45:02 +0000 (18:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:33 +0000 (09:33 +0100)
commit31914ac0825bf238b896911d71066f29855e124c
treed0fc319955a26653d68ef69e559313cc119dfde8
parent8d54b3da879e64e45d43e85240d147c44bf680ae
misc: fastrpc: Fix an error handling path in fastrpc_rpmsg_probe()

[ Upstream commit 5daef04ff11b57a692622317be124443de5f7c59 ]

If of_platform_populate() fails, some resources need to be freed as already
done in the other error handling paths.

Fixes: 947ee2ed5d8c ("misc: fastrpc: Reference count channel context")
Fixes: 1e9b07d3f120 ("misc: fastrpc: add secure domain support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/b909d2f3273b794ea0f1f78d14bc24affb08ea5f.1669398274.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/fastrpc.c