]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: imx-jpeg: Fix the error handling path of 'mxc_jpeg_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Aug 2021 11:12:53 +0000 (13:12 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:21 +0000 (09:48 +0100)
commitcaafb9498cbb75211cd05c0e7779726d20737b7d
tree8dcdc3a0a7164c1d12b0c84624e94b87675abd92
parent72c5a40b19e03565306f0a03d944be54f5e38299
media: imx-jpeg: Fix the error handling path of 'mxc_jpeg_probe()'

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 5c47dc6657543b3c4dffcbe741fb693b9b96796d ]

A successful 'mxc_jpeg_attach_pm_domains()' call should be balanced by a
corresponding 'mxc_jpeg_detach_pm_domains()' call in the error handling
path of the probe, as already done in the remove function.

Update the error handling path accordingly.

Fixes: 2db16c6ed72c ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/media/platform/imx-jpeg/mxc-jpeg.c