OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44a049c
)
atm: eni: fix the missed pci_disable_device() for eni_init_one()
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Fri, 4 Sep 2020 02:51:03 +0000
(10:51 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 5 Sep 2020 04:42:57 +0000
(21:42 -0700)
eni_init_one() misses to call pci_disable_device() in an error path.
Jump to err_disable to fix it.
Fixes:
ede58ef28e10
("atm: remove deprecated use of pci api")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/atm/eni.c
patch
|
blob
|
history
diff --git
a/drivers/atm/eni.c
b/drivers/atm/eni.c
index
39be444
..
316a994
100644
(file)
--- a/
drivers/atm/eni.c
+++ b/
drivers/atm/eni.c
@@
-2224,7
+2224,7
@@
static int eni_init_one(struct pci_dev *pci_dev,
rc = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32));
if (rc < 0)
- goto
out
;
+ goto
err_disable
;
rc = -ENOMEM;
eni_dev = kmalloc(sizeof(struct eni_dev), GFP_KERNEL);