Skip to content

Commit

Permalink
ACPI / LPSS: check the result of ioremap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heikki Krogerus authored and Rafael J. Wysocki committed Jan 22, 2015
1 parent ec6f34e commit 4483d59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/acpi_lpss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4483d59

Please sign in to comment.