summaryrefslogtreecommitdiffstats
path: root/drivers/dma/zx296702_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/zx296702_dma.c')
-rw-r--r--drivers/dma/zx296702_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/zx296702_dma.c b/drivers/dma/zx296702_dma.c
index 39915a6b7986..c017fcd8e07c 100644
--- 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);