Date: Thu, 22 May 2014 09:31:18 +0000 (UTC) From: Aleksandr Rybalko <ray@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266540 - head/sys/dev/vt Message-ID: <201405220931.s4M9VIJ6044539@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ray Date: Thu May 22 09:31:18 2014 New Revision: 266540 URL: http://svnweb.freebsd.org/changeset/base/266540 Log: Proper fix of VT_LOCKSWITCH ioctl. Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_core.c ============================================================================== --- head/sys/dev/vt/vt_core.c Thu May 22 09:28:36 2014 (r266539) +++ head/sys/dev/vt/vt_core.c Thu May 22 09:31:18 2014 (r266540) @@ -1815,9 +1815,9 @@ skip_thunk: case VT_LOCKSWITCH: /* TODO: Check current state, switching can be in progress. */ if ((*(int *)data) == 0x01) - vw->vw_flags &= ~VWF_VTYLOCK; - else if ((*(int *)data) == 0x02) vw->vw_flags |= VWF_VTYLOCK; + else if ((*(int *)data) == 0x02) + vw->vw_flags &= ~VWF_VTYLOCK; else return (EINVAL); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405220931.s4M9VIJ6044539>