]> git.baikalelectronics.ru Git - kernel.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)
commitbb6e924a7b24de1f32d5e0c5e2f59fb18a174940
tree5ed32cc22822adeda442be6e827745b8052cf183
parentad62d04d12d233003b2f4c7adbe2b955ffe3a5b7
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