]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: imx_rproc: Fix a resource leak in the remove function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 16 Oct 2021 06:44:28 +0000 (08:44 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 17 Nov 2021 16:36:27 +0000 (09:36 -0700)
commit5069f2357c1b619dcb0ad2127d6590735b8ff8ec
tree7cc09779ddf861846c0dc00d14fd31f8adc89c17
parent665b70e1d8a542fb4c89d1b32979f2acab27aaa1
remoteproc: imx_rproc: Fix a resource leak in the remove function

'priv->workqueue' is destroyed in the error handling path of the probe but
not in the remove function.

Add the missing call to release some resources.

Cc: stable <stable@vger.kernel.org>
Fixes: ff7a48d4f7cb ("remoteproc: imx_proc: enable virtio/mailbox")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/d28ca94a4031bd7297d47c2164e18885a5a6ec19.1634366546.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c