media: pci/ivtv: release memory regions on error
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 20 Jan 2021 08:52:53 +0000 (09:52 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 07:34:34 +0000 (08:34 +0100)
commitdd3bca72c4db353080e3de44124d45712d73b4f4
tree6997f1a8018add612dee064f958903a9075744b3
parent0dfa73608f45918aa1c9a98c6d4c8b86382a4bc2
media: pci/ivtv: release memory regions on error

Fix this smatch warning:

drivers/media/pci/ivtv/ivtv-driver.c:900 ivtv_setup_pci() warn: 'itv->base_addr' not released on lines: 876.

One error path didn't release the memory regions.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/ivtv/ivtv-driver.c