kernel_optimize_test/drivers/acpi
Mika Westerberg af65cfe9ae ACPI / LPSS: don't crash if a device has no MMIO resources
Intel LPSS devices that are enumerated from ACPI have both MMIO and IRQ
resources returned in their _CRS method. However, Apple Macbook Air with
Haswell has LPSS devices enumerated from PCI bus instead and _CRS method
returns only an interrupt number (but the device has _HID set that causes
the scan handler to match it).

The current ACPI / LPSS code sets pdata->dev_desc only when MMIO resource
is found for the device and in case of Macbook Air it is never found. That
leads to a NULL pointer dereference in register_device_clock().

Correct this by always setting the pdata->dev_desc.

Reported-and-tested-by: Imre Kaloz <kaloz@openwrt.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: 3.10+ <stable@vger.kernel.org> # 3.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-09-02 12:59:40 +02:00
..
acpica ACPICA: expose OSI version 2013-07-18 01:29:14 +02:00
apei Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2013-07-04 10:29:23 -07:00
ac.c ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
acpi_cmos_rtc.c
acpi_i2c.c
acpi_ipmi.c
acpi_lpss.c ACPI / LPSS: don't crash if a device has no MMIO resources 2013-09-02 12:59:40 +02:00
acpi_memhotplug.c ACPI / memhotplug: Fix a stale pointer in error path 2013-07-15 01:26:18 +02:00
acpi_pad.c ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
acpi_platform.c ACPI / scan: Drop unnecessary label from acpi_create_platform_device() 2013-08-07 01:11:33 +02:00
acpi_processor.c ACPI / processor: move try_offline_node() after acpi_unmap_lsapic() 2013-08-07 22:18:53 +02:00
battery.c Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
bgrt.c
blacklist.c
bus.c ACPI: Move acpi_bus_get_device() from bus.c to scan.c 2013-08-06 14:12:22 +02:00
button.c ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
cm_sbs.c
container.c
custom_method.c
debugfs.c
device_pm.c ACPI / PM: Fix corner case in acpi_bus_update_power() 2013-07-04 13:22:11 +02:00
dock.c ACPI / dock: Fix __init attribute location in find_dock_and_bay() 2013-08-13 12:34:33 +02:00
ec_sys.c
ec.c ACPI / EC: Add ASUSTEK L4R to quirk list in order to validate ECDT 2013-08-28 21:50:13 +02:00
event.c ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
fan.c ACPI / fan: Initialize acpi_state variable 2013-07-04 13:33:25 +02:00
glue.c ACPI: Try harder to resolve _ADR collisions for bridges 2013-08-07 22:55:00 +02:00
hed.c
internal.h Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
Kconfig ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
Makefile
numa.c ACPI / numa: Fix __init attribute location in slit_valid() 2013-08-13 12:35:42 +02:00
nvs.c
osl.c ACPI / osl: Kill macro INVALID_TABLE(). 2013-08-14 23:24:01 +02:00
pci_irq.c
pci_link.c
pci_root.c PCI changes for the v3.11 merge window: 2013-07-03 16:31:35 -07:00
pci_slot.c
power.c ACPI / power: add missing newline to debug messages 2013-07-05 13:30:20 +02:00
proc.c ACPI / PM: Walk physical_node_list under physical_node_lock 2013-08-06 02:26:22 +02:00
processor_core.c Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
processor_driver.c Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
processor_idle.c acpi: delete __cpuinit usage from all acpi files 2013-07-14 19:36:58 -04:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
resource.c
sbs.c ACPI: Remove the old /proc/acpi/event interface 2013-07-15 13:56:36 +02:00
sbshc.c
sbshc.h
scan.c Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
sleep.c ACPI / Sleep: Fix incorrect placement of __initdata 2013-08-07 23:49:29 +02:00
sleep.h
sysfs.c Merge branch 'akpm' (updates from Andrew Morton) 2013-07-03 17:12:13 -07:00
tables.c
thermal.c ACPI / thermal: Add check of "_TZD" availability and evaluating result 2013-08-28 21:47:07 +02:00
utils.c
video_detect.c Revert "ACPI / video / i915: No ACPI backlight if firmware expects Windows 8" 2013-07-26 14:59:20 +02:00
video.c Merge back earlier 'acpi-assorted' material 2013-08-14 23:22:45 +02:00
wakeup.c