提交 4483d59e 编写于 作者: H Heikki Krogerus 提交者: Rafael J. Wysocki

ACPI / LPSS: check the result of ioremap()

If it fails we have to skip the device.
Signed-off-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ec6f34e5
......@@ -340,6 +340,8 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
pdata->mmio_size = resource_size(&rentry->res);
pdata->mmio_base = ioremap(rentry->res.start,
pdata->mmio_size);
if (!pdata->mmio_base)
goto err_out;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册