summaryrefslogtreecommitdiff
path: root/drivers/scsi/mac53c94.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-09-02 10:30:25 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-02 10:59:40 (GMT)
commitaf65cfe9aeae03e0682bebdf4db94582d75562dd (patch)
tree197c7560e4510c4712a8ae3dddc283705a88f8c9 /drivers/scsi/mac53c94.h
parent524f42fab787a9510be826ce3d736b56d454ac6d (diff)
downloadlinux-fsl-qoriq-af65cfe9aeae03e0682bebdf4db94582d75562dd.tar.xz
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>
Diffstat (limited to 'drivers/scsi/mac53c94.h')
0 files changed, 0 insertions, 0 deletions