]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:03:08 +0000 (11:03 +0100)
commiteed411fc569133617bcbfe41eb7c1e841919c481
tree0769d82dfa4dee99fd0bfb9155945d7506208768
parentc4a8a329b5c3bf36e503a970b16d83e979bede73
remoteproc: imx_rproc: Fix a resource leak in the remove function

BugLink: https://bugs.launchpad.net/bugs/1959376
commit 4da96175014be67c846fd274eace08066e525d75 upstream.

'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: 2df7062002d0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/remoteproc/imx_rproc.c