aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-09 03:39:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-09 03:39:13 -0400
commit10ee08292028d3d22d201a34ba7d24a085818cb3 (patch)
treecf3bff48a7eab154574355f00a4b4f27dc85ff11 /drivers/tty/tty_io.c
parent7da4b8b7378790dd1e4af1bb7522863127fa1438 (diff)
parent44549e8f5eea4e0a41b487b63e616cb089922b99 (diff)
Merge 4.6-rc7 into tty-next
We want the pty fixes in here as well so that patches can build on it. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 50979be7aca4..734a635e7363 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -1363,12 +1363,12 @@ static ssize_t tty_line_name(struct tty_driver *driver, int index, char *p)
1363 * Locking: tty_mutex must be held. If the tty is found, bump the tty kref. 1363 * Locking: tty_mutex must be held. If the tty is found, bump the tty kref.
1364 */ 1364 */
1365static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, 1365static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver,
1366 struct inode *inode, int idx) 1366 struct file *file, int idx)
1367{ 1367{
1368 struct tty_struct *tty; 1368 struct tty_struct *tty;
1369 1369
1370 if (driver->ops->lookup) 1370 if (driver->ops->lookup)
1371 tty = driver->ops->lookup(driver, inode, idx); 1371 tty = driver->ops->lookup(driver, file, idx);
1372 else 1372 else
1373 tty = driver->ttys[idx]; 1373 tty = driver->ttys[idx];
1374 1374
@@ -2035,7 +2035,7 @@ static struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode,
2035 } 2035 }
2036 2036
2037 /* check whether we're reopening an existing tty */ 2037 /* check whether we're reopening an existing tty */
2038 tty = tty_driver_lookup_tty(driver, inode, index); 2038 tty = tty_driver_lookup_tty(driver, filp, index);
2039 if (IS_ERR(tty)) { 2039 if (IS_ERR(tty)) {
2040 mutex_unlock(&tty_mutex); 2040 mutex_unlock(&tty_mutex);
2041 goto out; 2041 goto out;