diff options
author | Srikanth Thokala <srikanth.thokala@xilinx.com> | 2014-11-05 19:37:01 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 08:41:47 +0100 |
commit | a5e48e243be8073d34524a824fe354d2f2e1fa24 (patch) | |
tree | d4fbb7be95483361232109ea282e1ff04d619904 /drivers/dma/xilinx | |
parent | dmaengine: xilinx: vdma: Check if the segment list is empty in a descriptor (diff) | |
download | linux-a5e48e243be8073d34524a824fe354d2f2e1fa24.tar.xz linux-a5e48e243be8073d34524a824fe354d2f2e1fa24.zip |
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) |