mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
atm: idt77252: call pci_disable_device() on error path
[ Upstream commit8df66af5c1] This error path needs to disable the pci device before returning. Fixes:ede58ef28e("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0e2dee9a6b
commit
8ece401fa3
@@ -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)))) {
|
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));
|
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);
|
card = kzalloc(sizeof(struct idt77252_dev), GFP_KERNEL);
|
||||||
|
|||||||
Reference in New Issue
Block a user