1. 09 2月, 2010 1 次提交
  2. 10 11月, 2009 1 次提交
  3. 07 11月, 2009 5 次提交
  4. 12 9月, 2009 1 次提交
    • J
      ASoC: Clean up error handling in MPC5200 DMA setup · 33d7f778
      Julia Lawall 提交于
      Error handling code following a kzalloc should free the allocated data.
      Error handling code following an ioremap should iounmap the allocated data.
      
      The semantic match that finds the first problem is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      statement S;
      expression E;
      identifier f,f1,l;
      position p1,p2;
      expression *ptr != NULL;
      @@
      
      x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
      ...
      if (x == NULL) S
      <... when != x
           when != if (...) { <+...x...+> }
      (
      x->f1 = E
      |
       (x->f1 == NULL || ...)
      |
       f(...,x->f1,...)
      )
      ...>
      (
       return \(0\|<+...x...+>\|ptr\);
      |
       return@p2 ...;
      )
      
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      @@
      
      print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      33d7f778
  5. 07 8月, 2009 1 次提交
  6. 06 8月, 2009 1 次提交
  7. 22 7月, 2009 1 次提交
  8. 03 7月, 2009 2 次提交
  9. 30 6月, 2009 2 次提交
  10. 28 5月, 2009 1 次提交
  11. 27 5月, 2009 6 次提交
  12. 25 5月, 2009 2 次提交
  13. 18 5月, 2009 1 次提交
  14. 04 5月, 2009 1 次提交
  15. 28 4月, 2009 2 次提交
  16. 07 4月, 2009 1 次提交
    • A
      ASoC: fsl_dma: Pass the proper device for dma mapping routines · 5c15a686
      Anton Vorontsov 提交于
      The driver should pass a device that specifies internal DMA ops, but
      substream->pcm is just a logical device, and thus doesn't have arch-
      specific dma callbacks, therefore following bug appears:
      
        Freescale Synchronous Serial Interface (SSI) ASoC Driver
        ------------[ cut here ]------------
        kernel BUG at arch/powerpc/include/asm/dma-mapping.h:237!
        Oops: Exception in kernel mode, sig: 5 [#1]
        ...
        NIP [c02259c4] snd_malloc_dev_pages+0x58/0xac
        LR [c0225c74] snd_dma_alloc_pages+0xf8/0x108
        Call Trace:
        [df02bde0] [df02be2c] 0xdf02be2c (unreliable)
        [df02bdf0] [c0225c74] snd_dma_alloc_pages+0xf8/0x108
        [df02be10] [c023a100] fsl_dma_new+0x68/0x124
        [df02be20] [c02342ac] soc_new_pcm+0x1bc/0x234
        [df02bea0] [c02343dc] snd_soc_new_pcms+0xb8/0x148
        [df02bed0] [c023824c] cs4270_probe+0x34/0x124
        [df02bef0] [c0232fe8] snd_soc_instantiate_card+0x1a4/0x2f4
        [df02bf20] [c0233164] snd_soc_instantiate_cards+0x2c/0x68
        [df02bf30] [c0234704] snd_soc_register_platform+0x60/0x80
        [df02bf50] [c03d5664] fsl_soc_platform_init+0x18/0x28
        ...
      
      This patch fixes the issue by using card's device instead.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Acked-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5c15a686
  17. 02 4月, 2009 2 次提交
  18. 07 3月, 2009 1 次提交
  19. 06 3月, 2009 1 次提交
  20. 05 3月, 2009 1 次提交
  21. 06 2月, 2009 1 次提交
  22. 23 1月, 2009 1 次提交
  23. 21 1月, 2009 2 次提交
  24. 10 12月, 2008 1 次提交
  25. 09 12月, 2008 1 次提交