diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/scan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index ff9f6226085d..8044583f3034 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1357,6 +1357,9 @@ int acpi_bus_start(struct acpi_device *device) | |||
1357 | { | 1357 | { |
1358 | struct acpi_bus_ops ops; | 1358 | struct acpi_bus_ops ops; |
1359 | 1359 | ||
1360 | if (!device) | ||
1361 | return -EINVAL; | ||
1362 | |||
1360 | memset(&ops, 0, sizeof(ops)); | 1363 | memset(&ops, 0, sizeof(ops)); |
1361 | ops.acpi_op_start = 1; | 1364 | ops.acpi_op_start = 1; |
1362 | 1365 | ||