diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-08-31 08:42:58 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-10-01 21:41:21 +0200 |
commit | a9cc4cbcdfd378b65fd4e398800cfa14e3855042 (patch) | |
tree | a2ffff493f0cfa0d2e47d6dc38f60d2f42ab800e /drivers/media/platform/seco-cec | |
parent | media: cedrus: fix various format-related compliance issues (diff) | |
download | linux-a9cc4cbcdfd378b65fd4e398800cfa14e3855042.tar.xz linux-a9cc4cbcdfd378b65fd4e398800cfa14e3855042.zip |
media: seco-cec: Add a missing 'release_region()' in an error handling path
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>
Diffstat (limited to 'drivers/media/platform/seco-cec')
-rw-r--r-- | drivers/media/platform/seco-cec/seco-cec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/seco-cec/seco-cec.c b/drivers/media/platform/seco-cec/seco-cec.c index 9cd60fe1867c..a86b6e8f9196 100644 --- a/drivers/media/platform/seco-cec/seco-cec.c +++ b/drivers/media/platform/seco-cec/seco-cec.c @@ -675,6 +675,7 @@ err_notifier: err_delete_adapter: cec_delete_adapter(secocec->cec_adap); err: + release_region(BRA_SMB_BASE_ADDR, 7); dev_err(dev, "%s device probe failed\n", dev_name(dev)); return ret; |