projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7772f77
)
wan: wanxl: add pci_disable_device in case of error
author
Saurabh Sengar
<saurabh.truth@gmail.com>
Fri, 11 Dec 2015 19:28:19 +0000
(
00:58
+0530)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Dec 2015 21:21:58 +0000
(16:21 -0500)
If there is 'no suitable DMA available' error, device should be disabled
before returning
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/wanxl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/wanxl.c
b/drivers/net/wan/wanxl.c
index e73f138578468db3a83bd882856ce897a747f2c0..a20d688d259570467d83585962815f42be5bd38d 100644
(file)
--- a/
drivers/net/wan/wanxl.c
+++ b/
drivers/net/wan/wanxl.c
@@
-586,6
+586,7
@@
static int wanxl_pci_init_one(struct pci_dev *pdev,
if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(28)) ||
pci_set_dma_mask(pdev, DMA_BIT_MASK(28))) {
pr_err("No usable DMA configuration\n");
+ pci_disable_device(pdev);
return -EIO;
}