1. 03 1月, 2017 1 次提交
  2. 02 1月, 2017 2 次提交
  3. 14 12月, 2016 1 次提交
  4. 18 11月, 2016 12 次提交
  5. 08 11月, 2016 2 次提交
  6. 03 11月, 2016 14 次提交
  7. 31 10月, 2016 7 次提交
  8. 17 10月, 2016 1 次提交
    • C
      usb: dwc3: Fix size used in dma_free_coherent() · 51fbc7c0
      Christophe JAILLET 提交于
      In commit 2abd9d5f ("usb: dwc3: ep0: Add chained TRB support"), the
      size of the memory allocated with 'dma_alloc_coherent()' has been modified
      but the corresponding calls to 'dma_free_coherent()' have not been updated
      accordingly.
      
      This has been spotted with coccinelle, using the following script:
      ////////////////////
      @r@
      expression x0, x1, y0, y1, z0, z1, t0, t1, ret;
      @@
      
      *   ret = dma_alloc_coherent(x0, y0, z0, t0);
          ...
      *   dma_free_coherent(x1, y1, ret, t1);
      
      @script:python@
      y0 << r.y0;
      y1 << r.y1;
      
      @@
      if y1.find(y0) == -1:
       print "WARNING: sizes look different:  '%s'   vs   '%s'" % (y0, y1)
      ////////////////////
      
      Fixes: 2abd9d5f ("usb: dwc3: ep0: Add chained TRB support")
      Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      51fbc7c0