projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e137788
)
mmc: dw_mmc: Fix null dma_ops access when use_dma is false
author
Jonathan Kliegman
<
[email protected]
>
Thu, 14 Jun 2012 17:31:55 +0000
(13:31 -0400)
committer
Chris Ball
<
[email protected]
>
Sat, 21 Jul 2012 04:02:09 +0000
(
00:02
-0400)
host->dma_ops is not valid if host->usa dma is 0 so protect
host->dma_ops reference in dw_mci_resume
Signed-off-by: Jonathan Kliegman <
[email protected]
>
Acked-by: Jaehoon Chung <
[email protected]
>
Acked-by: Will Newton <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index 5a600b3b3199cd50bea6a963f56c2bdc1ddbf1a1..72dc3cde646d063513f3a55fc8ba0ec74197261b 100644
(file)
--- a/
drivers/mmc/host/dw_mmc.c
+++ b/
drivers/mmc/host/dw_mmc.c
@@
-2186,7
+2186,7
@@
int dw_mci_resume(struct dw_mci *host)
return ret;
}
- if (host->dma_ops->init)
+ if (host->
use_dma && host->
dma_ops->init)
host->dma_ops->init(host);
/* Restore the old value at FIFOTH register */