aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1998-08-05 14:06:04 +0000
committerDavid Greenman <dg@FreeBSD.org>1998-08-05 14:06:04 +0000
commit760c5490eedc2be89a6c095a592a85d323f62351 (patch)
tree9a74a49351f4903d2dcc8da81b59e912cea0de13 /sys/kern
parent99453c6ab835fc4a054cdea976d7d229cc61339a (diff)
downloadsrc-760c5490eedc2be89a6c095a592a85d323f62351.tar.gz
src-760c5490eedc2be89a6c095a592a85d323f62351.zip
Move assignment of cur_rlp to after the acquisition of the list lock.
PR: 7496 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes: svn path=/head/; revision=38125
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_rlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c
index c96d156cfed4..33ac63289046 100644
--- a/sys/kern/subr_rlist.c
+++ b/sys/kern/subr_rlist.c
@@ -54,7 +54,7 @@
* functioning of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: subr_rlist.c,v 1.25 1998/02/06 12:13:26 eivind Exp $
+ * $Id: subr_rlist.c,v 1.26 1998/04/15 17:46:25 bde Exp $
*/
#include <sys/param.h>
@@ -118,7 +118,7 @@ rlist_free(rlh, start, end)
u_int start, end;
{
struct rlist **rlp = &rlh->rlh_list;
- struct rlist *prev_rlp = NULL, *cur_rlp = *rlp, *next_rlp = NULL;
+ struct rlist *prev_rlp = NULL, *cur_rlp, *next_rlp = NULL;
int s;
s = splhigh();
@@ -133,6 +133,7 @@ rlist_free(rlh, start, end)
* Traverse the list looking for an entry after the one we want
* to insert.
*/
+ cur_rlp = *rlp;
while (cur_rlp != NULL) {
if (start < cur_rlp->rl_start)
break;