mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
ACPI / LPSS: check the result of ioremap()
If it fails we have to skip the device. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
ec6f34e5b5
commit
4483d59e29
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue