Module Name: src
Committed By: christos
Date: Fri Nov 18 15:46:29 UTC 2011
Modified Files:
src/sys/compat/linux32/common: linux32_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.14 -r1.15 src/sys/compat/linux32/common/linux32_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/linux32/common/linux32_signal.c
diff -u src/sys/compat/linux32/common/linux32_signal.c:1.14 src/sys/compat/linux32/common/linux32_signal.c:1.15
--- src/sys/compat/linux32/common/linux32_signal.c:1.14 Thu Nov 17 23:08:56 2011
+++ src/sys/compat/linux32/common/linux32_signal.c Fri Nov 18 10:46:29 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_signal.c,v 1.14 2011/11/18 04:08:56 christos Exp $ */
+/* $NetBSD: linux32_signal.c,v 1.15 2011/11/18 15:46:29 christos Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.14 2011/11/18 04:08:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.15 2011/11/18 15:46:29 christos Exp $");
#include <sys/param.h>
#include <sys/ucred.h>
@@ -438,7 +438,6 @@ fetchss(const void *u, void *s, size_t l
int error;
linux32_sigset_t lss;
- KASSERT(len == sizeof(lss));
if ((error = copyin(u, &lss, sizeof(lss))) != 0)
return error;
@@ -452,7 +451,6 @@ fetchts(const void *u, void *s, size_t l
int error;
struct linux32_timespec lts;
- KASSERT(len == sizeof(lts));
if ((error = copyin(u, <s, sizeof(lts))) != 0)
return error;
@@ -472,7 +470,6 @@ storeinfo(const void *s, void *u, size_t
{
linux32_siginfo_t lsi;
- KASSERT(len == sizeof(lsi));
native_to_linux32_siginfo(&lsi, &((const siginfo_t *)s)->_info);
return copyout(&lsi, u, sizeof(lsi));