ACPI: Make sure the FADT is at least rev 2 before using the reset register
commit95cf3e12e7f659e536215b37c67d46f3e2ce95cc
authorMatthew Garrett <mjg@redhat.com>
Fri, 11 Mar 2011 21:12:20 +0000 (11 16:12 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 23 Mar 2011 03:52:49 +0000 (22 23:52 -0400)
tree26cd1cc9c22a0e3c8a9c9670051ac65b9fc7f9a3
parent6734fe57a07b2dd23ef1ef2ac1f790747e53eefc
ACPI: Make sure the FADT is at least rev 2 before using the reset register

The reset register was only introduced with version 2 of the FADT, so we
should check that the FADT revision before trusting its contents.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/reboot.c