Commit afa31420 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Permit big console scrolls

From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>

Changes the new console scrolling ioctl to permit distances greater than
+127/-128.
parent 95ea8516
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/tty_flip.h> #include <linux/tty_flip.h>
...@@ -2279,7 +2280,7 @@ int tioclinux(struct tty_struct *tty, unsigned long arg) ...@@ -2279,7 +2280,7 @@ int tioclinux(struct tty_struct *tty, unsigned long arg)
ret = fg_console; ret = fg_console;
break; break;
case TIOCL_SCROLLCONSOLE: case TIOCL_SCROLLCONSOLE:
if (get_user(lines, (char *)arg+1)) { if (get_user(lines, (s32 *)((char *)arg+4))) {
ret = -EFAULT; ret = -EFAULT;
} else { } else {
scrollfront(lines); scrollfront(lines);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment