]> 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:16:11 +0000 (20:16 +0100)
commit8548c96799396fd39aba6ae631f4995ecb17b626
tree2d2084ba99846d0077555f3865f5de03b90c2d93
parent2a006b4fa5cc4d224fd7ac23f26572d405d5152a
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