Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73275
b: refs/heads/master
c: d012753
h: refs/heads/master
i:
  73273: 5988273
  73271: 1ed5c9f
v: v3
  • Loading branch information
Alan Cox authored and David S. Miller committed Nov 7, 2007
1 parent 5ab14aa commit 8f1d0c5
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 58 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fc00e2440b717e19bab1ae0015f03936bdf7967
refs/heads/master: d0127539ea9b5fcfe1a1d7d4d57f12384da5190c
26 changes: 10 additions & 16 deletions trunk/drivers/net/hamradio/6pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,26 +762,20 @@ static int sixpack_ioctl(struct tty_struct *tty, struct file *file,

if (copy_from_user(&addr,
(void __user *) arg, AX25_ADDR_LEN)) {
err = -EFAULT;
break;
}
err = -EFAULT;
break;
}

netif_tx_lock_bh(dev);
memcpy(dev->dev_addr, &addr, AX25_ADDR_LEN);
netif_tx_unlock_bh(dev);
netif_tx_lock_bh(dev);
memcpy(dev->dev_addr, &addr, AX25_ADDR_LEN);
netif_tx_unlock_bh(dev);

err = 0;
break;
}

/* Allow stty to read, but not set, the serial port */
case TCGETS:
case TCGETA:
err = n_tty_ioctl(tty, (struct file *) file, cmd, arg);
break;
err = 0;
break;
}

default:
err = -ENOIOCTLCMD;
err = tty_mode_ioctl(tty, file, cmd, arg);
}

sp_put(sp);
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/net/irda/irtty-sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,6 @@ static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int c
IRDA_ASSERT(dev != NULL, return -1;);

switch (cmd) {
case TCGETS:
case TCGETA:
err = n_tty_ioctl(tty, file, cmd, arg);
break;

case IRTTY_IOCTDONGLE:
/* this call blocks for completion */
err = sirdev_set_dongle(dev, (IRDA_DONGLE) arg);
Expand All @@ -454,7 +449,7 @@ static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int c
err = -EFAULT;
break;
default:
err = -ENOIOCTLCMD;
err = tty_mode_ioctl(tty, file, cmd, arg);
break;
}
return err;
Expand Down
10 changes: 3 additions & 7 deletions trunk/drivers/net/ppp_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,11 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
err = 0;
break;

case TCGETS:
case TCGETA:
err = n_tty_ioctl(tty, file, cmd, arg);
break;

case TCFLSH:
/* flush our buffers and the serial port's buffer */
if (arg == TCIOFLUSH || arg == TCOFLUSH)
ppp_async_flush_output(ap);
err = n_tty_ioctl(tty, file, cmd, arg);
err = tty_perform_flush(tty, arg);
break;

case FIONREAD:
Expand All @@ -329,7 +324,8 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
break;

default:
err = -ENOIOCTLCMD;
/* Try the various mode ioctls */
err = tty_mode_ioctl(tty, file, cmd, arg);
}

ap_put(ap);
Expand Down
10 changes: 3 additions & 7 deletions trunk/drivers/net/ppp_synctty.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,11 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
err = 0;
break;

case TCGETS:
case TCGETA:
err = n_tty_ioctl(tty, file, cmd, arg);
break;

case TCFLSH:
/* flush our buffers and the serial port's buffer */
if (arg == TCIOFLUSH || arg == TCOFLUSH)
ppp_sync_flush_output(ap);
err = n_tty_ioctl(tty, file, cmd, arg);
err = tty_perform_flush(tty, arg);
break;

case FIONREAD:
Expand All @@ -369,7 +364,8 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
break;

default:
err = -ENOIOCTLCMD;
err = tty_mode_ioctl(tty, file, cmd, arg);
break;
}

sp_put(ap);
Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/net/wan/x25_asy.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,8 @@ static int x25_asy_ioctl(struct tty_struct *tty, struct file *file,
return 0;
case SIOCSIFHWADDR:
return -EINVAL;
/* 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);
}
}

Expand Down
10 changes: 1 addition & 9 deletions trunk/drivers/net/wireless/strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -2735,16 +2735,8 @@ static int strip_ioctl(struct tty_struct *tty, struct file *file,
return -EFAULT;
return set_mac_address(strip_info, &addr);
}
/*
* Allow stty to read, but not set, the serial port
*/

case TCGETS:
case TCGETA:
return n_tty_ioctl(tty, file, cmd, arg);
break;
default:
return -ENOIOCTLCMD;
return tty_mode_ioctl(tty, file, cmd, arg);
break;
}
return 0;
Expand Down

0 comments on commit 8f1d0c5

Please sign in to comment.