1. 20 4月, 2011 6 次提交
  2. 31 3月, 2011 4 次提交
  3. 30 3月, 2011 2 次提交
  4. 29 3月, 2011 1 次提交
  5. 26 3月, 2011 1 次提交
  6. 16 3月, 2011 1 次提交
    • J
      drivers/serial/ucc_uart.c: Add of_node_put to avoid memory leak · 48a10cdf
      Julia Lawall 提交于
      Add a call to of_node_put in the error handling code following a call to
      of_find_compatible_node or of_find_node_by_type.
      
      This patch also substantially reorganizes the error handling code in the
      function, to that it is possible first to jump to code that frees qe_port
      and then to jump to code that also puts np.
      
      The semantic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      expression E,E1,E2;
      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
      |of_find_node_by_type
      |of_find_node_with_property
      |of_find_matching_node
      |of_parse_phandle
      )(...);
      ...
      if (x == NULL) S
      <... when != x = E
      *if (...) {
        ... when != of_node_put(x)
            when != if (...) { ... of_node_put(x); ... }
      (
        return <+...x...+>;
      |
      *  return ...;
      )
      }
      ...>
      (
      E2 = x;
      |
      of_node_put(x);
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Acked-by: NTimur Tabi <timur@freescale.com>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      48a10cdf
  7. 15 3月, 2011 1 次提交
  8. 10 3月, 2011 2 次提交
  9. 08 3月, 2011 1 次提交
  10. 04 3月, 2011 1 次提交
    • A
      serial: sh-sci: fix deadlock when resuming from S3 sleep · 36003386
      Alexandre Courbot 提交于
      S3 sleep invokes the shutdown callback of the sh-sci driver, which
      suspends the clocks until they are reactivated by a call to startup.
      However, before the latter is invoked, sci_set_termios may be called on
      the port by uart_resume_port. In such cases it will endlessly wait for
      the TEND bit to raise, which will never happen since the clocks are
      disabled.
      
      This patch ensures that clocks are enabled when ports registers are
      manipulated within sci_set_termios.
      Signed-off-by: NAlexandre Courbot <gnurou@gmail.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      36003386
  11. 02 3月, 2011 2 次提交
  12. 01 3月, 2011 3 次提交
  13. 26 2月, 2011 1 次提交
  14. 24 2月, 2011 1 次提交
  15. 23 2月, 2011 13 次提交