diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/glue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index ea77512ad70c..9d200d5029ca 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c | |||
@@ -106,6 +106,9 @@ struct acpi_device *acpi_find_child_device(struct acpi_device *parent, | |||
106 | struct acpi_device *adev, *ret = NULL; | 106 | struct acpi_device *adev, *ret = NULL; |
107 | int ret_score = 0; | 107 | int ret_score = 0; |
108 | 108 | ||
109 | if (!parent) | ||
110 | return NULL; | ||
111 | |||
109 | list_for_each_entry(adev, &parent->children, node) { | 112 | list_for_each_entry(adev, &parent->children, node) { |
110 | unsigned long long addr; | 113 | unsigned long long addr; |
111 | acpi_status status; | 114 | acpi_status status; |