ras_purgeall: avoid taking p_auxlock.
This commit is contained in:
parent
6e9d339816
commit
c862aeca6f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_ras.c,v 1.31 2008/05/27 17:42:14 ad Exp $ */
|
||||
/* $NetBSD: kern_ras.c,v 1.32 2008/06/09 11:46:34 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_ras.c,v 1.31 2008/05/27 17:42:14 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_ras.c,v 1.32 2008/06/09 11:46:34 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -157,6 +157,9 @@ ras_purgeall(void)
|
|||
|
||||
p = curproc;
|
||||
|
||||
if (p->p_raslist == NULL)
|
||||
return;
|
||||
|
||||
mutex_enter(&p->p_auxlock);
|
||||
if ((rp = p->p_raslist) != NULL) {
|
||||
p->p_raslist = NULL;
|
||||
|
|
Loading…
Reference in New Issue