acpi_video: fix a crash in detach with an LCD output
The crash happened because of a video output object was removed from a wrong container, crt_units instead of lcd_units. MFC after: 1 week
This commit is contained in:
parent
c3f60abc30
commit
295e8e956f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360246
@ -642,7 +642,10 @@ acpi_video_vo_destroy(struct acpi_video_output *vo)
|
||||
|
||||
switch (vo->adr & DOD_DEVID_MASK) {
|
||||
case DOD_DEVID_MONITOR:
|
||||
voqh = &crt_units;
|
||||
if ((vo->adr & DOD_DEVID_MASK_FULL) == DOD_DEVID_LCD)
|
||||
voqh = &lcd_units;
|
||||
else
|
||||
voqh = &crt_units;
|
||||
break;
|
||||
case DOD_DEVID_TV:
|
||||
voqh = &tv_units;
|
||||
|
Loading…
Reference in New Issue
Block a user