1. 23 8月, 2011 1 次提交
  2. 14 8月, 2011 2 次提交
  3. 13 8月, 2011 1 次提交
  4. 12 8月, 2011 23 次提交
  5. 11 8月, 2011 1 次提交
    • J
      drivers/net/wireless/wl1251: add missing kfree · 059c4383
      Julia Lawall 提交于
      In each case, the kfree already at the end of the function is also needed
      in the error case.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @exists@
      local idexpression x;
      statement S,S1;
      expression E;
      identifier fl;
      expression *ptr != NULL;
      @@
      
      x = \(kmalloc\|kzalloc\|kcalloc\)(...);
      ...
      if (x == NULL) S
      <... when != x
           when != if (...) { <+...kfree(x)...+> }
           when any
           when != true x == NULL
      x->fl
      ...>
      (
      if (x == NULL) S1
      |
      if (...) { ... when != x
                     when forall
      (
       return \(0\|<+...x...+>\|ptr\);
      |
      * return ...;
      )
      }
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      059c4383
  6. 10 8月, 2011 8 次提交
  7. 03 8月, 2011 4 次提交