1. 14 6月, 2016 1 次提交
    • A
      dmaengine: xilinx-vdma: add some sanity checks · f67c3bda
      Arnd Bergmann 提交于
      The newly added xilinx_dma_prep_dma_cyclic function sometimes causes
      a gcc warning about the use of the segment function in case
      we never run into the inner loop of the function:
      
      dma/xilinx/xilinx_vdma.c: In function 'xilinx_dma_prep_dma_cyclic':
      dma/xilinx/xilinx_vdma.c:1808:23: error: 'segment' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         segment->hw.control |= XILINX_DMA_BD_SOP;
      
      This can only happen if the period len is zero (which would cause other
      problems earlier), or if the buffer is shorter than a period. Neither
      of them should ever happen, but by adding an explicit check for these two
      cases, we can abort in a more controlled way, and the compiler is
      able to see that we never use uninitialized data.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      f67c3bda
  2. 13 6月, 2016 1 次提交
  3. 07 6月, 2016 2 次提交
  4. 13 5月, 2016 2 次提交
  5. 12 5月, 2016 3 次提交
  6. 03 5月, 2016 1 次提交
  7. 06 4月, 2016 4 次提交
  8. 04 3月, 2016 1 次提交
  9. 03 3月, 2016 4 次提交
  10. 01 10月, 2015 1 次提交
  11. 17 3月, 2015 1 次提交
  12. 22 12月, 2014 1 次提交
  13. 06 11月, 2014 3 次提交
  14. 20 8月, 2014 1 次提交
  15. 30 4月, 2014 1 次提交