diff options
author | Srikanth Thokala <srikanth.thokala@xilinx.com> | 2014-11-05 20:37:01 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 13:11:47 +0530 |
commit | a5e48e243be8073d34524a824fe354d2f2e1fa24 (patch) | |
tree | d4fbb7be95483361232109ea282e1ff04d619904 /drivers/dma/xilinx | |
parent | 049c0d577d63c6a95edd5f59fa192f89f2674a64 (diff) |
dmaengine: xilinx: vdma: Allow only one chunk in a line
This patch adds a sanity check to see if frame_size is 1.
Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/xilinx')
-rw-r--r-- | drivers/dma/xilinx/xilinx_vdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c index 10937945a527..3d3f70dd9dea 100644 --- a/drivers/dma/xilinx/xilinx_vdma.c +++ b/drivers/dma/xilinx/xilinx_vdma.c @@ -942,6 +942,9 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan, if (!xt->numf || !xt->sgl[0].size) return NULL; + if (xt->frame_size != 1) + return NULL; + /* Allocate a transaction descriptor. */ desc = xilinx_vdma_alloc_tx_descriptor(chan); if (!desc) |