acpi_video(4): Fix detach panic.
authorImre Vadasz <imre@vdsz.com>
Fri, 27 Feb 2015 23:51:27 +0000 (00:51 +0100)
committerImre Vadasz <imre@vdsz.com>
Fri, 27 Feb 2015 23:57:42 +0000 (00:57 +0100)
commita8343f8df3c6fd551d10c36ddafdd3d201acdef9
tree7953e6adeb7f95b28f74c1c82597ca518fc0f3e2
parent8249c6416368c500932841c93ba35bee47a9d0f4
acpi_video(4): Fix detach panic.

* The "if ((adr & DOD_DEVID_MASK_FULL) == DOD_DEVID_LCD)" test from
  acpi_video_vo_init was missing in acpi_video_vo_destroy. This meant
  that on some machines we ended up calling STAILQ_REMOVE with an element
  not contained in the list, which causes a panic since STAILQ_REMOVE
  doesn't check for the end of the list.
sys/dev/acpica/acpi_video/acpi_video.c