]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 10:20:01 +0000 (07:20 -0300)
commite1444e9b0424c70def6352580762d660af50e03f
tree5ed32cc22822adeda442be6e827745b8052cf183
parent2eca8e4c1df4864b937752c3aa2f7925114f4806
media: cx88: Fix some error handling path in 'cx8800_initdev()'

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