tty: now phase out the ioctl file pointer for good
Only oddities here are a couple of drivers that bogusly called the ldisc helpers instead of returning -ENOIOCTLCMD. Fix the bug and the rest goes away. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
00a0d0d65b
commit
6caa76b778
@@ -334,7 +334,7 @@ free_mem_out:
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static int pty_bsd_ioctl(struct tty_struct *tty, struct file *file,
|
||||
static int pty_bsd_ioctl(struct tty_struct *tty,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
switch (cmd) {
|
||||
@@ -489,7 +489,7 @@ static struct ctl_table pty_root_table[] = {
|
||||
};
|
||||
|
||||
|
||||
static int pty_unix98_ioctl(struct tty_struct *tty, struct file *file,
|
||||
static int pty_unix98_ioctl(struct tty_struct *tty,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
switch (cmd) {
|
||||
|
Reference in New Issue
Block a user