aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l/isdn_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/i4l/isdn_tty.c')
-rw-r--r--drivers/isdn/i4l/isdn_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index 1a2222cbb805..b4d4522e5071 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -1592,7 +1592,7 @@ isdn_tty_open(struct tty_struct *tty, struct file *filp)
1592 int retval, line; 1592 int retval, line;
1593 1593
1594 line = tty->index; 1594 line = tty->index;
1595 if (line < 0 || line > ISDN_MAX_CHANNELS) 1595 if (line < 0 || line >= ISDN_MAX_CHANNELS)
1596 return -ENODEV; 1596 return -ENODEV;
1597 info = &dev->mdm.info[line]; 1597 info = &dev->mdm.info[line];
1598 if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open")) 1598 if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open"))