]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: seco-cec: Add a missing 'release_region()' in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 31 Aug 2019 06:42:58 +0000 (03:42 -0300)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:14:56 +0000 (08:14 -0600)
commit2ee6a7a028c50a4551e24978b6034b2bf91446d7
tree54c4f4ff2c6cdf6148928639bc7d9d365bc16118
parentbf557413942b12e5fe18ead9fa0521ccde1f4fdb
media: seco-cec: Add a missing 'release_region()' in an error handling path

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit a9cc4cbcdfd378b65fd4e398800cfa14e3855042 ]

At the beginning of the probe function, we have a call to
'request_muxed_region(BRA_SMB_BASE_ADDR, 7, "CEC00001")()'

A corresponding 'release_region()' is performed in the remove function but
is lacking in the error handling path.

Add it.

Fixes: b03c2fb97adc ("media: add SECO cec driver")
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+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/platform/seco-cec/seco-cec.c