1. 17 9月, 2014 1 次提交
  2. 26 8月, 2014 1 次提交
  3. 07 5月, 2014 1 次提交
  4. 11 4月, 2014 4 次提交
  5. 08 1月, 2014 1 次提交
  6. 28 10月, 2013 5 次提交
  7. 22 4月, 2013 1 次提交
  8. 07 12月, 2012 1 次提交
  9. 05 1月, 2012 1 次提交
    • J
      net/rfkill/rfkill-gpio.c: introduce missing kfree · 841f1d92
      Julia Lawall 提交于
      Error handling code following a kmalloc should free the allocated data.
      The label fail_alloc already does this for rfkill.
      
      A simplified version of the semantic match that finds the problem is as
      follows: (http://coccinelle.lip6.fr)
      
      // <smpl>
      @r exists@
      local idexpression x;
      statement S;
      identifier f1;
      position p1,p2;
      expression *ptr != NULL;
      @@
      
      x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
      ...
      if (x == NULL) S
      <... when != x
           when != if (...) { <+...x...+> }
      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: NJohn W. Linville <linville@tuxdriver.com>
      841f1d92
  10. 01 12月, 2011 1 次提交
  11. 04 10月, 2011 1 次提交
  12. 20 5月, 2011 1 次提交