git: kernel - Fix pty clone vnode leak

看板DFBSD_commit作者時間15年前 (2010/08/13 09:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CPA2NXK (DFBSD_commit)