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
This commit is contained in:
parent
8bafac5444
commit
1952f0b519
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271682
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user