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:
0be2136
)
dmaengine: zxdma: Fix off-by-one for testing valid pchan request
author
Axel Lin
<axel.lin@ingics.com>
Sat, 26 Sep 2015 09:15:47 +0000
(17:15 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 1 Oct 2015 02:12:27 +0000
(07:42 +0530)
The valid pchan range is 0 ~ d->dma_requests - 1.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/zx296702_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/zx296702_dma.c
b/drivers/dma/zx296702_dma.c
index 39915a6b7986e2fba00d285370f57f27ed3eeb9a..c017fcd8e07c29b65b7a480a1b817b4645c40f33 100644
(file)
--- a/
drivers/dma/zx296702_dma.c
+++ b/
drivers/dma/zx296702_dma.c
@@
-739,7
+739,7
@@
static struct dma_chan *zx_of_dma_simple_xlate(struct of_phandle_args *dma_spec,
struct dma_chan *chan;
struct zx_dma_chan *c;
- if (request > d->dma_requests)
+ if (request >
=
d->dma_requests)
return NULL;
chan = dma_get_any_slave_channel(&d->slave);