git: kernel - Fix pty clone vnode leak

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 12 18:23:57 PDT 2010


commit b80b4c328a74f1d0c2f262272a7170d10546d957
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list