DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix pty clone vnode leak


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Aug 2010 18:22:56 -0700 (PDT)

commit b80b4c328a74f1d0c2f262272a7170d10546d957
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Aug 12 18:20:41 2010 -0700

    kernel - Fix pty clone vnode leak
    
    * Any cloned devfs device (vn, tap, ptmx primarily) was leaving an extra
      vref on the related vnode, preventing the vnode from being recycled.
    
      This was due to devfs called vop_stdopen() but forgetting that
      vop_stdopen() will load the file pointer (fp), which devfs was also
      loading.  All devfs really needs to do is to replace fp->f_ops.
    
    Reported-by: swildner

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b80b4c328a74f1d0c2f262272a7170d10546d957


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]