From 618a0ff610ca5c7a48edf29222f1e82ddfa73a13 Mon Sep 17 00:00:00 2001 From: enami Date: Sun, 29 Jun 2003 05:26:25 +0000 Subject: [PATCH] Redo previous; struct proc *p is necessary if NSEQUENCER is non zero. --- sys/compat/linux/common/linux_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/common/linux_ioctl.c b/sys/compat/linux/common/linux_ioctl.c index 1370434fcb6e..1b4932dc0d8e 100644 --- a/sys/compat/linux/common/linux_ioctl.c +++ b/sys/compat/linux/common/linux_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ioctl.c,v 1.36 2003/06/28 22:52:53 bouyer Exp $ */ +/* $NetBSD: linux_ioctl.c,v 1.37 2003/06/29 05:26:25 enami Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_ioctl.c,v 1.36 2003/06/28 22:52:53 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ioctl.c,v 1.37 2003/06/29 05:26:25 enami Exp $"); #if defined(_KERNEL_OPT) #include "sequencer.h" @@ -112,6 +112,7 @@ linux_sys_ioctl(l, v, retval) * way. We do it by indexing in the cdevsw with the major * device number and check if that is the sequencer entry. */ + struct proc *p = l->l_proc; struct file *fp; struct filedesc *fdp; struct vnode *vp;