Module Name:    src
Committed By:   christos
Date:           Fri Nov 18 15:45:47 UTC 2011

Modified Files:
        src/sys/compat/linux/common: linux_signal.c

Log Message:
remove incorrect assertions (the len passed is the size of the bsd structure
not the linux one)


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/common/linux_signal.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/compat/linux/common/linux_signal.c
diff -u src/sys/compat/linux/common/linux_signal.c:1.73 src/sys/compat/linux/common/linux_signal.c:1.74
--- src/sys/compat/linux/common/linux_signal.c:1.73	Thu Nov 17 23:07:44 2011
+++ src/sys/compat/linux/common/linux_signal.c	Fri Nov 18 10:45:47 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_signal.c,v 1.73 2011/11/18 04:07:44 christos Exp $	*/
+/*	$NetBSD: linux_signal.c,v 1.74 2011/11/18 15:45:47 christos Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.73 2011/11/18 04:07:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.74 2011/11/18 15:45:47 christos Exp $");
 
 #define COMPAT_LINUX 1
 
@@ -559,7 +559,6 @@ fetchss(const void *u, void *s, size_t l
 	int error;
 	linux_sigset_t lss;
 	
-	KASSERT(len == sizeof(lss));
 	if ((error = copyin(u, &lss, sizeof(lss))) != 0)
 		return error;
 
@@ -573,7 +572,6 @@ fetchts(const void *u, void *s, size_t l
 	int error;
 	struct linux_timespec lts;
 	
-	KASSERT(len == sizeof(lts));
 	if ((error = copyin(u, &lts, sizeof(lts))) != 0)
 		return error;
 

Reply via email to