mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
media: imx-jpeg: Fix the error handling path of 'mxc_jpeg_probe()'
[ Upstream commit5c47dc6657] 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:2db16c6ed7("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
56bc844703
commit
7b0b7b8a2b
@@ -2092,6 +2092,8 @@ err_m2m:
|
||||
v4l2_device_unregister(&jpeg->v4l2_dev);
|
||||
|
||||
err_register:
|
||||
mxc_jpeg_detach_pm_domains(jpeg);
|
||||
|
||||
err_irq:
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user