diff options
author | Vinod Koul <vinod.koul@intel.com> | 2018-01-31 09:19:40 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2018-01-31 09:19:40 +0100 |
commit | 1eac32184daab3d00299bdc4532ec17ced2af0b8 (patch) | |
tree | 2344a62b324fce607b591439e24a185727b7e4e3 /drivers/dma | |
parent | dmaengine: dmatest: fix container_of member in dmatest_callback (diff) | |
parent | dmaengine: cppi41: Fix channel queues array size check (diff) | |
download | linux-1eac32184daab3d00299bdc4532ec17ced2af0b8.tar.xz linux-1eac32184daab3d00299bdc4532ec17ced2af0b8.zip |
Merge branch 'topic/cppi' into for-linus
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/cppi41.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index f7e965f63274..d9bee65a18a4 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -934,7 +934,7 @@ static bool cpp41_dma_filter_fn(struct dma_chan *chan, void *param) BUILD_BUG_ON(ARRAY_SIZE(am335x_usb_queues_rx) != ARRAY_SIZE(am335x_usb_queues_tx)); - if (WARN_ON(cchan->port_num > ARRAY_SIZE(am335x_usb_queues_rx))) + if (WARN_ON(cchan->port_num >= ARRAY_SIZE(am335x_usb_queues_rx))) return false; cchan->q_num = queues[cchan->port_num].submit; |