1. 20 7月, 2010 1 次提交
  2. 19 7月, 2010 5 次提交
  3. 14 7月, 2010 2 次提交
  4. 13 7月, 2010 4 次提交
  5. 12 7月, 2010 7 次提交
  6. 29 6月, 2010 1 次提交
  7. 24 6月, 2010 3 次提交
  8. 21 6月, 2010 4 次提交
  9. 04 6月, 2010 3 次提交
  10. 02 6月, 2010 1 次提交
    • J
      HID: roccat: introduce missing kfree · dfe5c7b7
      Julia Lawall 提交于
      Error handling code following a kmalloc should free the allocated data.
      
      The semantic match that finds the 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: NJiri Kosina <jkosina@suse.cz>
      dfe5c7b7
  11. 31 5月, 2010 4 次提交
  12. 25 5月, 2010 4 次提交
  13. 24 5月, 2010 1 次提交
    • S
      HID: fix hid-roccat-kone for bin_attr API change · 5f277629
      Stephen Rothwell 提交于
      After merging the driver-core tree, today's linux-next build (x86_64
      allmodconfig) produced these warnings:
      
      drivers/hid/hid-roccat-kone.c:694: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:696: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:701: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:703: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:708: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:710: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:715: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:717: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:722: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:724: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:729: warning: initialization from incompatible pointer type
      drivers/hid/hid-roccat-kone.c:731: warning: initialization from incompatible pointer type
      
      Introduced by commit 867040163f10f2b52b45bc573f330d6eb28f5914 ("sysfs:
      add struct file* to bin_attr callbacks") from the driver-core tree
      interacting with commit 14bf62cd ("HID:
      add driver for Roccat Kone gaming mouse") from the hid tree.
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      5f277629