]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hp_accel: fix race in device removal
authorOliver Neukum <oneukum@suse.de>
Tue, 11 May 2010 21:07:03 +0000 (14:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 May 2010 21:32:03 +0000 (14:32 -0700)
commit1a4dd9753e578e650bcbf6a425a4f386a97e3e9b
treea3815d7f19af7335c0df2e0843c55a5db9f4d424
parentb7e608824a5eb85c1c324d3822760cbfb3a34dce
hp_accel: fix race in device removal

commit 06efbeb4a47b6f865e1c9d175ab9d6e90b69ae9e upstream.

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 <oneukum@suse.de>
Acked-by: Eric Piel <eric.piel@tremplin-utc.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Pavel Herrmann <morpheus.ibis@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/hp_accel.c