Prev: [13/34] serial: imx.c: fix CTS trigger level lower to avoid lost chars
Next: [15/34] ALSA: hda: Fix 0 dB for Lenovo models using Conexant CX20549 (Venice)
From: Greg KH on 24 May 2010 19:20 2.6.34-stable review patch. If anyone has any objections, please let us know. ------------------ From: Oliver Neukum <oneukum(a)suse.de> 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(a)suse.de> Acked-by: Eric Piel <eric.piel(a)tremplin-utc.net> Acked-by: Pavel Machek <pavel(a)ucw.cz> Cc: Pavel Herrmann <morpheus.ibis(a)gmail.com> Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds(a)linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh(a)suse.de> --- drivers/hwmon/hp_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/hp_accel.c +++ b/drivers/hwmon/hp_accel.c @@ -324,8 +324,8 @@ static int lis3lv02d_remove(struct acpi_ lis3lv02d_joystick_disable(); lis3lv02d_poweroff(&lis3_dev); - flush_work(&hpled_led.work); led_classdev_unregister(&hpled_led.led_classdev); + flush_work(&hpled_led.work); return lis3lv02d_remove_fs(&lis3_dev); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |