VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Dan Carpenter <dan.carpenter@oracle.com> 2020-12-19 14:01:44 +0300 committer: Jakub Kicinski <kuba@kernel.org> 2020-12-21 17:34:09 -0800 commit: 8df66af5c1e5f80562fe728db5ec069b21810144 parent: 83469893204281ecf65d572bddf02de29a19787c
Commit Summary:
atm: idt77252: call pci_disable_device() on error path
Diffstat:
1 file changed, 1 insertion, 1 deletion
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);