projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42bd7a4
)
tty,vt: fix VT_SETACTIVATE console switch
author
Jiri Olsa
<jolsa@redhat.com>
Fri, 11 Feb 2011 14:39:28 +0000
(15:39 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 17 Feb 2011 19:27:17 +0000
(11:27 -0800)
using VT_SETACTIVATE ioctl for console switch did not work,
since it put wrong param to the set_console function.
Also ioctl returned misleading error, because of the missing
break statement. I wonder anyone has ever used this one :).
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/vt/vt_ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/vt/vt_ioctl.c
b/drivers/tty/vt/vt_ioctl.c
index 6bcf05bf49784f1f252a7c793a7391464b052040..9e9a901442a35cd4b16ae7b78b766884beba8b72 100644
(file)
--- a/
drivers/tty/vt/vt_ioctl.c
+++ b/
drivers/tty/vt/vt_ioctl.c
@@
-1010,8
+1010,9
@@
int vt_ioctl(struct tty_struct *tty, struct file * file,
if (ret)
break;
/* Commence switch and lock */
- set_console(
arg
);
+ set_console(
vsa.console
);
}
+ break;
}
/*