Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_core.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_core.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.29 retrieving revision 1.30 diff -u -p -r1.29 -r1.30 --- src/sys/kern/kern_core.c 2019/12/12 02:15:43 1.29 +++ src/sys/kern/kern_core.c 2020/05/23 23:42:43 1.30 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_core.c,v 1.29 2019/12/12 02:15:43 pgoyette Exp $ */ +/* $NetBSD: kern_core.c,v 1.30 2020/05/23 23:42:43 ad Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1993 @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_core.c,v 1.29 2019/12/12 02:15:43 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_core.c,v 1.30 2020/05/23 23:42:43 ad Exp $"); #include #include @@ -119,7 +119,7 @@ coredump(struct lwp *l, const char *patt p = l->l_proc; vm = p->p_vmspace; - mutex_enter(proc_lock); /* p_session */ + mutex_enter(&proc_lock); /* p_session */ mutex_enter(p->p_lock); /* @@ -131,7 +131,7 @@ coredump(struct lwp *l, const char *patt p->p_rlimit[RLIMIT_CORE].rlim_cur) { error = EFBIG; /* better error code? */ mutex_exit(p->p_lock); - mutex_exit(proc_lock); + mutex_exit(&proc_lock); goto done; } @@ -150,7 +150,7 @@ coredump(struct lwp *l, const char *patt if (!security_setidcore_dump) { error = EPERM; mutex_exit(p->p_lock); - mutex_exit(proc_lock); + mutex_exit(&proc_lock); goto done; } pattern = security_setidcore_path; @@ -167,7 +167,7 @@ coredump(struct lwp *l, const char *patt if (error) { mutex_exit(p->p_lock); - mutex_exit(proc_lock); + mutex_exit(&proc_lock); goto done; } @@ -184,7 +184,7 @@ coredump(struct lwp *l, const char *patt } mutex_exit(p->p_lock); - mutex_exit(proc_lock); + mutex_exit(&proc_lock); if (error) goto done; @@ -282,7 +282,7 @@ coredump_buildname(struct proc *p, char char *d, *end; int i; - KASSERT(mutex_owned(proc_lock)); + KASSERT(mutex_owned(&proc_lock)); for (s = src, d = dst, end = d + len; *s != '\0'; s++) { if (*s == '%') {