From: Oliver Neukum Date: Tue, 11 May 2010 21:07:03 +0000 (-0700) Subject: hp_accel: fix race in device removal X-Git-Tag: v2.6.34~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06efbeb4a47b6f865e1c9d175ab9d6e90b69ae9e;p=pandora-kernel.git 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: Oliver Neukum Acked-by: Eric Piel Acked-by: Pavel Machek Cc: Pavel Herrmann Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed