Module Name:    src
Committed By:   riastradh
Date:           Sat Jan 26 19:38:17 UTC 2013

Modified Files:
        src/sys/kern: sys_select.c

Log Message:
Assert equality, not assignment, in selrecord.

Code inspection suggests that this fix is not likely to reveal any
latent problems.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/sys_select.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_select.c
diff -u src/sys/kern/sys_select.c:1.36 src/sys/kern/sys_select.c:1.37
--- src/sys/kern/sys_select.c:1.36	Mon Aug 29 00:39:16 2011
+++ src/sys/kern/sys_select.c	Sat Jan 26 19:38:17 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $	*/
+/*	$NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -596,7 +596,7 @@ selrecord(lwp_t *selector, struct selinf
 
 	if (other == selector) {
 		/* 1. We (selector) already claimed to be the first LWP. */
-		KASSERT(sip->sel_cluster = sc);
+		KASSERT(sip->sel_cluster == sc);
 	} else if (other == NULL) {
 		/*
 		 * 2. No first LWP, therefore we (selector) are the first.

Reply via email to