patch-2.3.48 linux/drivers/sgi/char/shmiq.c

Next file: linux/drivers/sgi/char/streamable.c
Previous file: linux/drivers/sgi/char/sgiserial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/sgi/char/shmiq.c linux/drivers/sgi/char/shmiq.c
@@ -1,4 +1,4 @@
-/* $Id: shmiq.c,v 1.12 1999/06/17 13:29:04 ralf Exp $
+/* $Id: shmiq.c,v 1.20 2000/02/24 00:13:10 ralf Exp $
  *
  * shmiq.c: shared memory input queue driver
  * written 1997 Miguel de Icaza (miguel@nuclecu.unam.mx)
@@ -311,7 +311,7 @@
 	if (minor-- == 0)
 		return -EINVAL;
 
-	if (vma->vm_pgoff)
+	if (vma->vm_pgoff != 0)
 		return -EINVAL;
 
 	size  = vma->vm_end - vma->vm_start;

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