projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2dee9
)
atm: idt77252: call pci_disable_device() on error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 19 Dec 2020 11:01:44 +0000
(14:01 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:09 +0000
(20:18 +0100)
[ 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
patch
|
blob
|
history
diff --git
a/drivers/atm/idt77252.c
b/drivers/atm/idt77252.c
index
65a3886
..
5f0472c
100644
(file)
--- 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);