1. 11 Jun, 2003 40 commits
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 24408814
      Alexander Viro authored
      drivers/char/dz.c converted to dynamic allocation
      24408814
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 6c8bbb50
      Alexander Viro authored
      drivers/char/amiserial.c converted to dynamic allocation
      6c8bbb50
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 8e46bef9
      Alexander Viro authored
      drivers/char/istallion.c converted to dynamic allocation
      8e46bef9
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · aade9842
      Alexander Viro authored
      drivers/char/stallion.c converted to dynamic allocation
      aade9842
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 37e21205
      Alexander Viro authored
      drivers/char/sx.c converted to dynamic allocation
      37e21205
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 8cc90793
      Alexander Viro authored
      drivers/macintosh/macserial.c converted to dynamic allocation
      8cc90793
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · fd3c92c1
      Alexander Viro authored
      drivers/sbus/char/aurora.c converted to dynamic allocation
      fd3c92c1
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 568b33db
      Alexander Viro authored
      drivers/tc/zs.c converted to dynamic allocation
      568b33db
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 4b1fa7e1
      Alexander Viro authored
      drivers/sgi/char/sgiserial.c converted to dynamic allocation
      4b1fa7e1
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 0b9b531b
      Alexander Viro authored
      drivers/serial/mcfserial.c converted to dynamic allocation
      0b9b531b
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · d4b965ce
      Alexander Viro authored
      drivers/serial/68360serial.c converted to dynamic allocation
      d4b965ce
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · b841dfad
      Alexander Viro authored
      drivers/serial/68328serial.c converted to dynamic allocation
      b841dfad
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 15ccfaf0
      Alexander Viro authored
      drivers/serial/core.c converted to dynamic allocation
      15ccfaf0
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 0f77fcff
      Alexander Viro authored
      net/bluetooth/rfcomm/tty.c converted to dynamic allocation
      0f77fcff
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 1d1ae830
      Alexander Viro authored
      net/irda/ircomm/ircomm_tty.c converted to dynamic allocation
      1d1ae830
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 99a21ede
      Alexander Viro authored
      killed the last remnants of callout stuff - we don't need to mess with
      storing termios privately anymore.
      99a21ede
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · e9f92fa1
      Alexander Viro authored
      added helper functions for allocation and freeing tty_driver
      e9f92fa1
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 0835153f
      Alexander Viro authored
      ->table[], ->termios[] and ->locked_termios[] allocated dynamically
      in tty_register_driver() and freed in tty_unregister_driver().  Per-driver
      arrays gone.
      0835153f
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · a689e686
      Alexander Viro authored
      ->refcount switched from int * to int.  Per-driver variables gone since we had
      switched from int foo = 0; driver.refcount = &foo; to driver.refcount = 0;
      a689e686
    • Alexander Viro's avatar
      [PATCH] tty_driver refcounting · 4b19f739
      Alexander Viro authored
      Fixes a couple of leaks in char_dev.c
      4b19f739
    • Andrew Morton's avatar
      [PATCH] tioclinux() numbers in <linux/tiocl.h> · 6cd8b047
      Andrew Morton authored
      From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>
      
      Tioclinux() uses "magic numbers" that applications should know to use it.
      Here is a patch which adds an include/linux/tiocl.h which holds them and
      can be used by applications to properly call iotcl(TIOCLINUX).  It might
      stand for documentation as well, replacing the not up-to-date man
      ioctl_list.
      
      A structure for the selection argument is also defined.
      6cd8b047
    • Andrew Morton's avatar
      [PATCH] fix resource leak in i810 driver · c60e4c00
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Free any read channel allocated earlier if allocation of write channel
      fails.  (From 2.4).
      c60e4c00
    • Andrew Morton's avatar
      [PATCH] rio memleak fix · e9529a6c
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Fix memory leak - free on copyin failure.
      e9529a6c
    • Andrew Morton's avatar
      [PATCH] emu10k1 memleak fix · 57e92500
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Fix memory leak in emu10k1_audio_open.
      57e92500
    • Andrew Morton's avatar
      [PATCH] mpu401 usercopy fix · ccb81d9c
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Use copy_to_user to copy mpu_synth_ioctl arg.
      ccb81d9c
    • Andrew Morton's avatar
      [PATCH] mdc800 usercopy fix · 25ed287b
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Use copy_to_user/get_char with user buffers.
      25ed287b
    • Andrew Morton's avatar
      [PATCH] intermezzo symlink fix · 1e320d10
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Fixed copy/user problem in lento_symlink where user address was getting
      passed to presto_do_symlink.  (From 2.4)
      1e320d10
    • Andrew Morton's avatar
      [PATCH] eicon usercopy fix · e068527c
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Use copy_to_user, not memcpy with user buffers
      e068527c
    • Andrew Morton's avatar
      [PATCH] x25 facilities parsing fix · 82b73ef9
      Andrew Morton authored
      From: Dipankar Sarma <dipankar@in.ibm.com>
      
      Fix parsing of options for X.25 facilities
      82b73ef9
    • Andrew Morton's avatar
      [PATCH] cleanup seqfile usage in resource.c · 54279dd8
      Andrew Morton authored
      From: Jeff Muizelaar <muizelaar@rogers.com>
      
      This patch against 2.5.70-bk2 removes the buffer allocation from resource.c
      and lets seq_read do it instead.
      54279dd8
    • Andrew Morton's avatar
      [PATCH] tmpfs: misc fixes · d69e1f7a
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Remove shmem_nrpages, no use is made of it (even 2.4-ac, though it counts
      it, does nothing with it): reintroduce if it becomes useful.  Replace GPL
      oneliner by the block from 2.4-ac, extend Copyright to 2003, remove two
      white spaces.
      d69e1f7a
    • Andrew Morton's avatar
      [PATCH] tmpfs: swapoff-truncate race · a09677ae
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Dissatisfied with earlier fix to race where swapoff sneaks page into tmpfs
      page cache after truncate_inode_pages cleaned it: calling it a second time
      can be too heavy, instead fix shmem_unuse_inode to check i_size.
      (Actually, one part of this fix is in the previous patch: shmem_file_write
      now has a hold on the page when it raises i_size.)
      a09677ae
    • Andrew Morton's avatar
      [PATCH] tmpfs: shmem_file_write EFAULT · dca33729
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      generic_file_aio_write_nolock has recently been corrected for when partial
      writes hit -EFAULT: now bring shmem_file_write into line.
      dca33729
    • Andrew Morton's avatar
      [PATCH] loop: don't lose PF_MEMDIE · 9001a6cb
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      loop_get_buffer loses PF_MEMDIE if it's added while in loop_copy_bio: not a
      high probability since it's not waiting there, but could happen, and sets a
      bad example (compare with add_to_swap fixed a while back).
      9001a6cb
    • Andrew Morton's avatar
      [PATCH] loop: copy_bio use highmem · 665cc275
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      loop_copy_bio uses one gfp_mask for bio_alloc and alloc_page calls.  The
      bio_alloc obviously can't use highmem, but the alloc_page can.  Yes, the
      underlying device might be unable to use highmem, and have to use one of
      its bounce buffers, with an extra copy: so be it.
      
      (Originally I did propagate the underlying device's bounce needs down to
      the loop device, to avoid that possible extra copy; but let's keep this
      simple, the low end doesn't have highmem and the high end can I/O it.)
      665cc275
    • Andrew Morton's avatar
      [PATCH] loop: remove blk_queue_bounce · c7616924
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      What purpose does loop_make_request's blk_queue_bounce serve?  None, it's
      just a relic from before the kmaps were added to loop's transfers, and ties
      up mempooled resources - in the file-backed case, with no guarantee they'll
      soon be freed.  And what purpose does loop_set_fd's blk_queue_bounce_limit
      serve?  None, blk_queue_make_request did that.
      c7616924
    • Andrew Morton's avatar
      [PATCH] loop: remove LO_FLAGS_BH_REMAP · d31f07fc
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Jonah Sherman <jsherman@stuy.edu> pointed out back in February how
      LO_FLAGS_BH_REMAP is never actually set, since loop_init_xfer only calls
      the init for non-0 encryption type.  Fix that or scrap it?  Let's scrap it
      for now, that path (hacking values in bio instead of copying data) seems
      never to have been tested, and adds to the number of paths through loop:
      leave that optimization to some other occasion.
      d31f07fc
    • Andrew Morton's avatar
      [PATCH] loop: remove an IV · 5651a85c
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Remove unused IV from loop_make_request (loop_transfer_bio does that).
      5651a85c
    • Andrew Morton's avatar
      [PATCH] loop: copy bio not data · be6c54d9
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Remove copy flag and code from loop_copy_bio: wasn't used when reading, and
      waste of time when writing - the loop transfer function does that.  And
      don't initialize bio fields immediately reinitialized by caller.
      be6c54d9
    • Andrew Morton's avatar
      [PATCH] loop: loop bio renaming · 6e1cd5dd
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Now it's in loop not bio, better rename bio_copy to loop_copy_bio: loop
      prefers names that way; and bio_transfer better named loop_transfer_bio.
      Rename bio,b to rbh,bio to follow call from loop_get_buffer more easily.
      6e1cd5dd