diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2014-09-16 17:42:37 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2014-09-16 17:42:37 +0000 |
commit | a491c5b76d8c94a8f279129710a064a78fd4fbb7 (patch) | |
tree | cacd9b220df6c71681b28926cc2e80e6efdb4f04 /sys/dev/vt | |
parent | da9629f8a4b610b1d2040c0a2dc2aad90e2e1ae5 (diff) | |
download | FreeBSD-src-a491c5b76d8c94a8f279129710a064a78fd4fbb7.zip FreeBSD-src-a491c5b76d8c94a8f279129710a064a78fd4fbb7.tar.gz |
vt(4): Fix a LOR which occurs during a call to vt_upgrade()
Reported by: kib@
Review: https://reviews.freebsd.org/D785
Reviewed by: ray@
Approved by: ray@
MFC after: 2 days
Diffstat (limited to 'sys/dev/vt')
-rw-r--r-- | sys/dev/vt/vt_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 5d43316..15151aa 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2405,7 +2405,6 @@ vt_allocate(struct vt_driver *drv, void *softc) main_vd->vd_driver->vd_name, drv->vd_name); } vd = main_vd; - VT_LOCK(vd); if (vd->vd_flags & VDF_ASYNC) { /* Stop vt_flush periodic task. */ @@ -2421,6 +2420,7 @@ vt_allocate(struct vt_driver *drv, void *softc) * Reset VDF_TEXTMODE flag, driver who require that flag (vt_vga) will * set it. */ + VT_LOCK(vd); vd->vd_flags &= ~VDF_TEXTMODE; vd->vd_driver = drv; |