]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Improve parameter validation for acpi_install_gpe_block.
authorBob Moore <robert.moore@intel.com>
Sat, 8 Feb 2014 01:42:19 +0000 (09:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Feb 2014 23:30:24 +0000 (00:30 +0100)
commite8a58b1155c353a67beefb839c7bec0deb287dc9
tree3f2f948067345cc6c9a15e03df65097811601451
parentbd4283dc12cad939eb0e1f3b0a884533bd21dc75
ACPICA: Improve parameter validation for acpi_install_gpe_block.

Add the following checks:
1) The incoming device handle refers to type ACPI_TYPE_DEVICE.
2) There is not already a gpe block attached to the device.

Likewise, with acpi_remove_gpe_block, ensure that the incoming object
is a device.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evxfgpe.c