|
@@ -1173,8 +1173,14 @@ static unsigned int hung_up_tty_poll(struct file * filp, poll_table * wait)
|
|
|
return POLLIN | POLLOUT | POLLERR | POLLHUP | POLLRDNORM | POLLWRNORM;
|
|
|
}
|
|
|
|
|
|
-static long hung_up_tty_ioctl(struct file * file,
|
|
|
- unsigned int cmd, unsigned long arg)
|
|
|
+static int hung_up_tty_ioctl(struct inode * inode, struct file * file,
|
|
|
+ unsigned int cmd, unsigned long arg)
|
|
|
+{
|
|
|
+ return cmd == TIOCSPGRP ? -ENOTTY : -EIO;
|
|
|
+}
|
|
|
+
|
|
|
+static long hung_up_tty_compat_ioctl(struct file * file,
|
|
|
+ unsigned int cmd, unsigned long arg)
|
|
|
{
|
|
|
return cmd == TIOCSPGRP ? -ENOTTY : -EIO;
|
|
|
}
|
|
@@ -1222,8 +1228,8 @@ static const struct file_operations hung_up_tty_fops = {
|
|
|
.read = hung_up_tty_read,
|
|
|
.write = hung_up_tty_write,
|
|
|
.poll = hung_up_tty_poll,
|
|
|
- .unlocked_ioctl = hung_up_tty_ioctl,
|
|
|
- .compat_ioctl = hung_up_tty_ioctl,
|
|
|
+ .ioctl = hung_up_tty_ioctl,
|
|
|
+ .compat_ioctl = hung_up_tty_compat_ioctl,
|
|
|
.release = tty_release,
|
|
|
};
|
|
|
|