Skip to contentSkip to conversation

tty,vt: fix VT_SETACTIVATE console switch

PATCH New Jiri Olsa 1 participant 1 message Feb 11, 2011 TTY layer and serial drivers

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

PATCH 1/1 tty,vt: fix VT_SETACTIVATE console switch

hi,

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 :).

wbr,
jirka

---
 drivers/tty/vt/vt_ioctl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/tty/vt/vt_ioctl.c +2 -1
index 1235ebd..6f05dc4 100644
@@ -1007,8 +1007,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;
 	}
 
 	/*
Signature · 1 line
1.7.1