]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: bt8xx: Fix err 'bt878_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 21 Sep 2017 23:23:56 +0000 (19:23 -0400)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 26 Mar 2018 12:16:21 +0000 (09:16 -0300)
commitbf2932e178065db2d49c9c19fedeb51207d6f6f2
treee7fea61342ac3c322a621d3745f50795e2e3fec5
parenta1062de59a6a9a374d696429387b54c991ab874e
media: bt8xx: Fix err 'bt878_probe()'

BugLink: http://bugs.launchpad.net/bugs/1758886
[ Upstream commit 45392ff6881dbe56d41ef0b17c2e576065f8ffa1 ]

This is odd to call 'pci_disable_device()' in an error path before a
coresponding successful 'pci_enable_device()'.

Return directly instead.

Fixes: 77e0be12100a ("V4L/DVB (4176): Bug-fix: Fix memory overflow")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/media/pci/bt8xx/bt878.c