git: kernel - Fix token ordering in sysctl_kern_proc_args(), sys

看板DFBSD_commit作者時間14年前 (2011/11/17 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Nov 16 08:40:40 2011 -0800 kernel - Fix token ordering in sysctl_kern_proc_args(), sysctl_kern_proc_cwd() * We have to PHOLD() first, then get p->p_token, not the other way around. Use pfind() instead of pfindn(). * Extract and ref the the ncdir from p->p_fd before calling cache_fullpath() on it to ensure stability. Summary of changes: sys/kern/kern_proc.c | 41 +++++++++++++++++++++++------------------ 1 files changed, 23 insertions(+), 18 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d -- DragonFly BSD source repository
文章代碼(AID): #1Em_fhJi (DFBSD_commit)