media: cx88: Fix some error handling path in 'cx8800_initdev()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 22 Sep 2019 07:41:23 +0000 (04:41 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:35:02 +0000 (16:35 +0100)
commit3835f9294998e0b1a1b90f7b9b2601c86afa9405
treedfdfb36956e469b2f034abf7a632eec744424d09
parent5d60d398148d00a6fc8f0e1844055be3441e1d01
media: cx88: Fix some error handling path in 'cx8800_initdev()'

[ Upstream commit e1444e9b0424c70def6352580762d660af50e03f ]

A call to 'pci_disable_device()' is missing in the error handling path.
In some cases, a call to 'free_irq()' may also be missing.

Reorder the error handling path, add some new labels and fix the 2 issues
mentionned above.

This way, the error handling path in more in line with 'cx8800_finidev()'
(i.e. the remove function)

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>
drivers/media/pci/cx88/cx88-video.c