patch-2.0.1 linux/fs/ioctl.c

Next file: linux/fs/locks.c
Previous file: linux/fs/ext2/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.0/linux/fs/ioctl.c linux/fs/ioctl.c
@@ -51,7 +51,7 @@
 	}
 	if (filp->f_op && filp->f_op->ioctl)
 		return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg);
-	return -EINVAL;
+	return -ENOTTY;
 }
 
 
@@ -103,6 +103,6 @@
 			if (filp->f_op && filp->f_op->ioctl)
 				return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg);
 
-			return -EINVAL;
+			return -ENOTTY;
 	}
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov