patch-2.3.13 linux/arch/sparc64/solaris/timod.c

Next file: linux/arch/sparc64/vmlinux.lds
Previous file: linux/arch/sparc64/solaris/socksys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/arch/sparc64/solaris/timod.c linux/arch/sparc64/solaris/timod.c
@@ -1,4 +1,4 @@
-/* $Id: timod.c,v 1.2 1999/05/12 11:11:55 davem Exp $
+/* $Id: timod.c,v 1.3 1999/08/02 12:06:01 jj Exp $
  * timod.c: timod emulation.
  *
  * Copyright (C) 1998 Patrik Rak (prak3264@ss1000.ms.mff.cuni.cz)
@@ -33,9 +33,7 @@
 	u32 arg);
 asmlinkage int solaris_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
 
-#ifdef __SMP__
 spinlock_t timod_pagelock = SPIN_LOCK_UNLOCKED;
-#endif
 static char * page = NULL ;
 
 #ifndef DEBUG_SOLARIS_KMALLOC
@@ -866,7 +864,7 @@
 
 	SOLD("entry");
 	lock_kernel();
-	if(fd >= current->files->max_fds) goto out;
+	if(fd >= NR_OPEN) goto out;
 
 	filp = current->files->fd[fd];
 	if(!filp) goto out;
@@ -933,7 +931,7 @@
 
 	SOLD("entry");
 	lock_kernel();
-	if(fd >= current->files->max_fds) goto out;
+	if(fd >= NR_OPEN) goto out;
 
 	filp = current->files->fd[fd];
 	if(!filp) goto out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)