Skip to content

Commit c2b9478

Browse files
hiss2018kuba-moo
authored andcommitted
atm: eni: fix the missed pci_disable_device() for eni_init_one()
eni_init_one() misses to call pci_disable_device() in an error path. Jump to err_disable to fix it. Fixes: ede58ef ("atm: remove deprecated use of pci api") Signed-off-by: Jing Xiangfeng <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 44a049c commit c2b9478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/atm/eni.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ static int eni_init_one(struct pci_dev *pci_dev,
22242224

22252225
rc = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32));
22262226
if (rc < 0)
2227-
goto out;
2227+
goto err_disable;
22282228

22292229
rc = -ENOMEM;
22302230
eni_dev = kmalloc(sizeof(struct eni_dev), GFP_KERNEL);

0 commit comments

Comments
 (0)