Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207921
b: refs/heads/master
c: 2b50d24
h: refs/heads/master
i:
  207919: 2061b39
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 55c0215 commit 41e6748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 61fd15262bb9c88a05fd89af22add9317dc1b1f4
refs/heads/master: 2b50d24760a7c0b62180e6fb5a44c2ce3db66abd
12 changes: 6 additions & 6 deletions trunk/drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ static ssize_t tty_read(struct file *file, char __user *buf, size_t count,
struct inode *inode;
struct tty_ldisc *ld;

tty = (struct tty_struct *)file->private_data;
tty = file->private_data;
inode = file->f_path.dentry->d_inode;
if (tty_paranoia_check(tty, inode, "tty_read"))
return -EIO;
Expand Down Expand Up @@ -1070,7 +1070,7 @@ static ssize_t tty_write(struct file *file, const char __user *buf,
ssize_t ret;
struct tty_ldisc *ld;

tty = (struct tty_struct *)file->private_data;
tty = file->private_data;
if (tty_paranoia_check(tty, inode, "tty_write"))
return -EIO;
if (!tty || !tty->ops->write ||
Expand Down Expand Up @@ -1513,7 +1513,7 @@ int tty_release(struct inode *inode, struct file *filp)
int idx;
char buf[64];

tty = (struct tty_struct *)filp->private_data;
tty = filp->private_data;
if (tty_paranoia_check(tty, inode, "tty_release_dev"))
return 0;

Expand Down Expand Up @@ -1920,7 +1920,7 @@ static unsigned int tty_poll(struct file *filp, poll_table *wait)
struct tty_ldisc *ld;
int ret = 0;

tty = (struct tty_struct *)filp->private_data;
tty = filp->private_data;
if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_poll"))
return 0;

Expand All @@ -1937,7 +1937,7 @@ static int __tty_fasync(int fd, struct file *filp, int on)
unsigned long flags;
int retval = 0;

tty = (struct tty_struct *)filp->private_data;
tty = filp->private_data;
if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_fasync"))
goto out;

Expand Down Expand Up @@ -2497,7 +2497,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
struct tty_ldisc *ld;
struct inode *inode = file->f_dentry->d_inode;

tty = (struct tty_struct *)file->private_data;
tty = file->private_data;
if (tty_paranoia_check(tty, inode, "tty_ioctl"))
return -EINVAL;

Expand Down

0 comments on commit 41e6748

Please sign in to comment.