1. 27 9月, 2012 4 次提交
  2. 18 9月, 2012 4 次提交
  3. 14 9月, 2012 6 次提交
  4. 01 9月, 2012 4 次提交
  5. 31 8月, 2012 2 次提交
  6. 22 8月, 2012 2 次提交
    • J
      drivers/dma/amba-pl08x.c: fix error return code · 983d7beb
      Julia Lawall 提交于
      Convert a 0 error return code to a negative one, as returned elsewhere in the
      function.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      identifier ret;
      expression e,e1,e2,e3,e4,x;
      @@
      
      (
      if (\(ret != 0\|ret < 0\) || ...) { ... return ...; }
      |
      ret = 0
      )
      ... when != ret = e1
      *x = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\|ioremap\|ioremap_nocache\|devm_ioremap\|devm_ioremap_nocache\)(...);
      ... when != x = e2
          when != ret = e3
      *if (x == NULL || ...)
      {
        ... when != ret = e4
      *  return ret;
      }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NVinod Koul <vinod.koul@linux.intel.com>
      983d7beb
    • J
      drivers/dma/sirf-dma.c: fix usage of devm functions · 94d3901c
      Julia Lawall 提交于
      Fix some problems with the use of devm_ functions.
      
      devm_kzalloc: devm_kfree is not needed
      
      devm_ioremap: iounmap should not be used, no free is needed
      
      devm_request_irq: the devm_free_irq is followed by irq_dispose_mapping.  I
      don't know if it is safe to move the freeing of the irq in this case, so I
      have just un-devm'd this function, since the implicit freeing is never
      taken advantage of.
      
      In the original code failure of of_address_to_resource jumped to free_mem,
      but should have jumped to irq_dispose, since irq_of_parse_and_map has
      completed at this point.
      
      In the original code unmap_mem was after irq_dispose, but it should have
      been before, again since irq_of_parse_and_map has completed at this point.
      
      One of these problems was found using the following semantic match:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression x;
      @@
      
      *x = devm_ioremap(...)
      ...
      iounmap(x);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NBarry Song <Baohua.Song@csr.com>
      Signed-off-by: NVinod Koul <vinod.koul@linux.intel.com>
      94d3901c
  7. 02 8月, 2012 4 次提交
  8. 01 8月, 2012 14 次提交