diff options
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/fs3270.c | 16 | ||||
-rw-r--r-- | drivers/s390/char/sclp_tty.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/tape_char.c | 8 | ||||
-rw-r--r-- | drivers/s390/char/tty3270.c | 2 |
4 files changed, 15 insertions, 13 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 78f8bda81dae..0893d306ae80 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c | |||
@@ -419,16 +419,20 @@ fs3270_open(struct inode *inode, struct file *filp) | |||
419 | struct idal_buffer *ib; | 419 | struct idal_buffer *ib; |
420 | int minor, rc; | 420 | int minor, rc; |
421 | 421 | ||
422 | if (imajor(filp->f_dentry->d_inode) != IBM_FS3270_MAJOR) | 422 | if (imajor(filp->f_path.dentry->d_inode) != IBM_FS3270_MAJOR) |
423 | return -ENODEV; | 423 | return -ENODEV; |
424 | minor = iminor(filp->f_dentry->d_inode); | 424 | minor = iminor(filp->f_path.dentry->d_inode); |
425 | /* Check for minor 0 multiplexer. */ | 425 | /* Check for minor 0 multiplexer. */ |
426 | if (minor == 0) { | 426 | if (minor == 0) { |
427 | if (!current->signal->tty) | 427 | struct tty_struct *tty; |
428 | mutex_lock(&tty_mutex); | ||
429 | tty = get_current_tty(); | ||
430 | if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) { | ||
431 | mutex_unlock(&tty_mutex); | ||
428 | return -ENODEV; | 432 | return -ENODEV; |
429 | if (current->signal->tty->driver->major != IBM_TTY3270_MAJOR) | 433 | } |
430 | return -ENODEV; | 434 | minor = tty->index + RAW3270_FIRSTMINOR; |
431 | minor = current->signal->tty->index + RAW3270_FIRSTMINOR; | 435 | mutex_unlock(&tty_mutex); |
432 | } | 436 | } |
433 | /* Check if some other program is already using fullscreen mode. */ | 437 | /* Check if some other program is already using fullscreen mode. */ |
434 | fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor); | 438 | fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor); |
diff --git a/drivers/s390/char/sclp_tty.c b/drivers/s390/char/sclp_tty.c index 6f43e04dbefd..2d173e5c8a09 100644 --- a/drivers/s390/char/sclp_tty.c +++ b/drivers/s390/char/sclp_tty.c | |||
@@ -60,8 +60,6 @@ static unsigned short int sclp_tty_chars_count; | |||
60 | 60 | ||
61 | struct tty_driver *sclp_tty_driver; | 61 | struct tty_driver *sclp_tty_driver; |
62 | 62 | ||
63 | extern struct termios tty_std_termios; | ||
64 | |||
65 | static struct sclp_ioctls sclp_ioctls; | 63 | static struct sclp_ioctls sclp_ioctls; |
66 | static struct sclp_ioctls sclp_ioctls_init = | 64 | static struct sclp_ioctls sclp_ioctls_init = |
67 | { | 65 | { |
diff --git a/drivers/s390/char/tape_char.c b/drivers/s390/char/tape_char.c index 97f75237bed6..31198c8f2718 100644 --- a/drivers/s390/char/tape_char.c +++ b/drivers/s390/char/tape_char.c | |||
@@ -298,13 +298,13 @@ tapechar_open (struct inode *inode, struct file *filp) | |||
298 | int minor, rc; | 298 | int minor, rc; |
299 | 299 | ||
300 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", | 300 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", |
301 | imajor(filp->f_dentry->d_inode), | 301 | imajor(filp->f_path.dentry->d_inode), |
302 | iminor(filp->f_dentry->d_inode)); | 302 | iminor(filp->f_path.dentry->d_inode)); |
303 | 303 | ||
304 | if (imajor(filp->f_dentry->d_inode) != tapechar_major) | 304 | if (imajor(filp->f_path.dentry->d_inode) != tapechar_major) |
305 | return -ENODEV; | 305 | return -ENODEV; |
306 | 306 | ||
307 | minor = iminor(filp->f_dentry->d_inode); | 307 | minor = iminor(filp->f_path.dentry->d_inode); |
308 | device = tape_get_device(minor / TAPE_MINORS_PER_DEV); | 308 | device = tape_get_device(minor / TAPE_MINORS_PER_DEV); |
309 | if (IS_ERR(device)) { | 309 | if (IS_ERR(device)) { |
310 | DBF_EVENT(3, "TCHAR:open: tape_get_device() failed\n"); | 310 | DBF_EVENT(3, "TCHAR:open: tape_get_device() failed\n"); |
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c index 4717c3611601..09844621edc0 100644 --- a/drivers/s390/char/tty3270.c +++ b/drivers/s390/char/tty3270.c | |||
@@ -1659,7 +1659,7 @@ tty3270_flush_buffer(struct tty_struct *tty) | |||
1659 | * Check for visible/invisible input switches | 1659 | * Check for visible/invisible input switches |
1660 | */ | 1660 | */ |
1661 | static void | 1661 | static void |
1662 | tty3270_set_termios(struct tty_struct *tty, struct termios *old) | 1662 | tty3270_set_termios(struct tty_struct *tty, struct ktermios *old) |
1663 | { | 1663 | { |
1664 | struct tty3270 *tp; | 1664 | struct tty3270 *tp; |
1665 | int new; | 1665 | int new; |