mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
tty: fix /dev/tty{1,63} minor number
Seems like, device with TTY_MAJOR major and minor MIN_NR_CONSOLES is pointing to /dev/tty1 (first vitual console) and MAX_NR_CONSOLES is /dev/tty63. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
bec1dd18e2
commit
9191ce422c
@@ -261,7 +261,7 @@ struct tty_driver *get_tty_driver(dev_t rdev, dev_t dev)
|
||||
return &ctty_driver;
|
||||
break;
|
||||
case TTY_MAJOR:
|
||||
if (minor > MIN_NR_CONSOLES && minor < MAX_NR_CONSOLES)
|
||||
if (minor >= MIN_NR_CONSOLES && minor <= MAX_NR_CONSOLES)
|
||||
/*
|
||||
* Minors [MIN_NR_CONSOLES; MAX_NR_CONSOLES] stand
|
||||
* for consoles (virtual terminals, VT in terms
|
||||
|
Reference in New Issue
Block a user