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, 20 Jan 2023 12:10:46 +0000 (13:10 +0100)
commit11819ed2b70da94acc41fec34178a011c4d3d25d
tree6a5806835dc240f4422bb84e40e32482267c3e14
parent895ae5bee159d148bac21a82899292c408c1aab1
misc: fastrpc: Fix an error handling path in fastrpc_rpmsg_probe()

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

Fixes: 278d56f970ae ("misc: fastrpc: Reference count channel context")
Fixes: 3abe3ab3cdab ("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>
drivers/misc/fastrpc.c