Commit afde3991 authored by Andy Grover's avatar Andy Grover

ACPI: Fix check of schedule_work()'s return value (Ducrot Bruno)

parent 2c455fcb
...@@ -650,7 +650,7 @@ acpi_os_queue_for_execution( ...@@ -650,7 +650,7 @@ acpi_os_queue_for_execution(
task = (void *)(dpc+1); task = (void *)(dpc+1);
INIT_WORK(task, acpi_os_schedule_exec, (void*)dpc); INIT_WORK(task, acpi_os_schedule_exec, (void*)dpc);
if (schedule_work(task) < 0) { if (!schedule_work(task)) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Call to schedule_work() failed.\n")); ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Call to schedule_work() failed.\n"));
kfree(dpc); kfree(dpc);
status = AE_ERROR; status = AE_ERROR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment