]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
atm: idt77252: call pci_disable_device() on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Dec 2020 11:01:44 +0000 (14:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:10:17 +0000 (20:10 +0100)
commit2acc299c1510ec71c2023372050528faa173edc4
tree466103b7c023349a7429e7ce00d4c84f46c983b8
parenteb3ba03a68636ed814316b018b76f2b437af4138
atm: idt77252: call pci_disable_device() on error path

[ Upstream commit 8df66af5c1e5f80562fe728db5ec069b21810144 ]

This error path needs to disable the pci device before returning.

Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X93dmC4NX0vbTpGp@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/atm/idt77252.c