OSDN Git Service

media: tw686x: Fix an error handling path in tw686x_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 20 Jun 2022 05:31:53 +0000 (06:31 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 08:16:05 +0000 (09:16 +0100)
commit978bbc392c51e0ece959978daa0ad7fb4dd7f932
tree29f798301f15b4d9548626cd6e3c4046ac61bbf4
parente5833b56f75dbf70b8c446fc3b0b2c3814d50e67
media: tw686x: Fix an error handling path in tw686x_probe()

The commit in Fixes: is incomplete. It has moved some code in the probe but
not all error handling paths have been updated.

Now, if request_irq() fails, we must release some resources.

Fixes: c8946454ed96 ("media: tw686x: Register the irq at the end of probe")
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@kernel.org>
drivers/media/pci/tw686x/tw686x-core.c