ktruser now returns an error if the buffer length is too big.
This commit is contained in:
parent
97e81e479c
commit
0838967c65
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: darwin_iohidsystem.c,v 1.34 2006/10/12 01:30:47 christos Exp $ */
|
||||
/* $NetBSD: darwin_iohidsystem.c,v 1.35 2006/10/22 18:18:08 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_iohidsystem.c,v 1.34 2006/10/12 01:30:47 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_iohidsystem.c,v 1.35 2006/10/22 18:18:08 christos Exp $");
|
||||
|
||||
#include "ioconf.h"
|
||||
#include "wsmux.h"
|
||||
@ -720,7 +720,7 @@ mach_notify_iohidsystem(struct lwp *l __unused, struct mach_right *mr)
|
||||
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(l->l_proc, KTR_USER))
|
||||
ktruser(l, "notify_iohidsystem", NULL, 0, 0);
|
||||
(void)ktruser(l, "notify_iohidsystem", NULL, 0, 0);
|
||||
#endif
|
||||
|
||||
mr->mr_refcount++;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: darwin_ktrace.c,v 1.5 2006/10/12 01:30:47 christos Exp $ */
|
||||
/* $NetBSD: darwin_ktrace.c,v 1.6 2006/10/22 18:18:08 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_ktrace.c,v 1.5 2006/10/12 01:30:47 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_ktrace.c,v 1.6 2006/10/22 18:18:08 christos Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -64,7 +64,5 @@ darwin_sys_utrace(struct lwp *l, void *v, register_t *retval __unused)
|
||||
syscallarg(size_t) len;
|
||||
} */ *uap = v;
|
||||
|
||||
ktruser(l, "darwin", SCARG(uap, addr), SCARG(uap, len), 0);
|
||||
|
||||
return 0;
|
||||
return ktruser(l, "darwin", SCARG(uap, addr), SCARG(uap, len), 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user