summaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-12-19 12:01:44 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-22 02:34:09 +0100
commit8df66af5c1e5f80562fe728db5ec069b21810144 (patch)
tree9e12d63e83e62e8b5bc366a89f20c63bc2548bd3 /drivers/atm
parentionic: account for vlan tag len in rx buffer len (diff)
downloadlinux-8df66af5c1e5f80562fe728db5ec069b21810144.tar.xz
linux-8df66af5c1e5f80562fe728db5ec069b21810144.zip
atm: idt77252: call pci_disable_device() on error path
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/idt77252.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 65a3886f68c9..5f0472c18bcb 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3607,7 +3607,7 @@ static int idt77252_init_one(struct pci_dev *pcidev,
if ((err = dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(32)))) {
printk("idt77252: can't enable DMA for PCI device at %s\n", pci_name(pcidev));
- return err;
+ goto err_out_disable_pdev;
}
card = kzalloc(sizeof(struct idt77252_dev), GFP_KERNEL);