git: kernel - Fix pty clone vnode leak
dillon at crater.dragonflybsd.org
Thu Aug 12 18:23:57 PDT 2010
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.
Summary of changes:
sys/vfs/devfs/devfs_vnops.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
DragonFly BSD source repository
More information about the Commits