1. 18 12月, 2012 4 次提交
  2. 28 9月, 2012 5 次提交
  3. 06 9月, 2012 1 次提交
  4. 17 5月, 2012 1 次提交
  5. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  6. 12 1月, 2012 4 次提交
  7. 02 11月, 2011 10 次提交
  8. 01 11月, 2011 1 次提交
  9. 30 5月, 2011 1 次提交
  10. 21 4月, 2011 1 次提交
    • A
      virtio: console: Enable call to hvc_remove() on console port remove · afa2689e
      Amit Shah 提交于
      This call was disabled as hot-unplugging one virtconsole port led to
      another virtconsole port freezing.
      
      Upon testing it again, this now works, so enable it.
      
      In addition, a bug was found in qemu wherein removing a port of one type
      caused the guest output from another port to stop working.  I doubt it
      was just this bug that caused it (since disabling the hvc_remove() call
      did allow other ports to continue working), but since it's all solved
      now, we're fine with hot-unplugging of virtconsole ports.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      afa2689e
  11. 07 3月, 2011 1 次提交
  12. 04 2月, 2011 1 次提交
  13. 14 1月, 2011 1 次提交
  14. 24 11月, 2010 1 次提交
    • J
      Char: virtio_console, fix memory leak · 22e132ff
      Jiri Slaby 提交于
      Stanse found that in init_vqs, memory is leaked under certain
      circumstanses (the fail path order is incorrect). Fix that by checking
      allocations in one turn and free all of them at once if some fails
      (some may be NULL, but this is OK).
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Amit Shah <amit.shah@redhat.com>
      Cc: virtualization@lists.linux-foundation.org
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      22e132ff
  15. 21 10月, 2010 7 次提交