[TTY]: Use tty_mode_ioctl() in network drivers.
We conciously make a change here - we permit mode and speed setting to be done in things like SLIP mode. There isn't actually a technical reason to disallow this. It's usually a silly thing to do but we can do it and soemone might wish to do so. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0fc00e2440
commit
d0127539ea
@@ -1218,14 +1218,8 @@ static int slip_ioctl(struct tty_struct *tty, struct file *file, unsigned int cm
|
||||
return 0;
|
||||
/* VSV changes end */
|
||||
#endif
|
||||
|
||||
/* Allow stty to read, but not set, the serial port */
|
||||
case TCGETS:
|
||||
case TCGETA:
|
||||
return n_tty_ioctl(tty, file, cmd, arg);
|
||||
|
||||
default:
|
||||
return -ENOIOCTLCMD;
|
||||
return tty_mode_ioctl(tty, file, cmd, arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user