1. 02 Sep, 2010 1 commit
    • Julia Lawall's avatar
      powerpc/via-pmu-led.c: Add of_node_put to avoid memory leak · 1f7aac6e
      Julia Lawall authored
      Add a call to of_node_put in the error handling code following a call to
      of_find_node_by_path.
      
      The semantic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/
      
      )
      
      // <smpl>
      @r exists@
      local idexpression x;
      expression E,E1;
      statement S;
      @@
      
      *x =
      (of_find_node_by_path
      |of_find_node_by_name
      |of_find_node_by_phandle
      |of_get_parent
      |of_get_next_parent
      |of_get_next_child
      |of_find_compatible_node
      |of_match_node
      )(...);
      ...
      if (x == NULL) S
      <... when != x = E
      *if (...) {
        ... when != of_node_put(x)
            when != if (...) { ... of_node_put(x); ... }
      (
        return <+...x...+>;
      |
      *  return ...;
      )
      }
      ...>
      of_node_put(x);
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      1f7aac6e
  2. 07 Sep, 2009 1 commit
  3. 08 May, 2007 1 commit
  4. 27 Apr, 2007 1 commit
  5. 26 Apr, 2007 1 commit
  6. 12 Apr, 2007 2 commits
  7. 26 Mar, 2007 1 commit
  8. 31 Jul, 2006 1 commit
  9. 25 Jul, 2006 1 commit
    • Johannes Berg's avatar
      [POWERPC] fix up front-LED Kconfig · d1a8df91
      Johannes Berg authored
      
      This patch fixes the front-LED Kconfig issues I introduced while
      creating it. Apparently having a dependency isn't enough to have the
      select not evaluated or something like that.
      
      The patch also changes the default configuration for pmac32 select the
      default for the LED to be the IDE trigger. While I was at it, I
      completely updated the defconfig and also added snd-aoa to it.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      d1a8df91
  10. 07 Jul, 2006 1 commit
  11. 28 Jun, 2006 1 commit