Commit 06efbeb4 authored by Oliver Neukum's avatar Oliver Neukum Committed by Linus Torvalds
Browse files

hp_accel: fix race in device removal

The work queue has to be flushed after the device has been made
inaccessible.  The patch closes a window during which a work queue might
remain active after the device is removed and would then lead to ACPI
calls with undefined behavior.
Signed-off-by: default avatarOliver Neukum <>
Acked-by: default avatarEric Piel <>
Acked-by: default avatarPavel Machek <>
Cc: Pavel Herrmann <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a3ed2a15
......@@ -328,8 +328,8 @@ static int lis3lv02d_remove(struct acpi_device *device, int type)
return lis3lv02d_remove_fs(&lis3_dev);
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