Message ID | 1477408169-22217-9-git-send-email-guohanjun@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 7d543aa..2881108 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -347,7 +347,8 @@ struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node, if (map[index].flags & ACPI_IORT_ID_SINGLE_MAPPING) { if (node->type == ACPI_IORT_NODE_NAMED_COMPONENT || node->type == ACPI_IORT_NODE_PCI_ROOT_COMPLEX) { - *id_out = map[index].output_base; + if (id_out) + *id_out = map[index].output_base; return parent; } }