diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-13 10:53:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-11 14:48:17 +0800 |
commit | 15a9c9addacfc62780b7908e15e4fc87b508791f (patch) | |
tree | e28bd75fcdc3c2ed5e2ba2b0278ffa609374c998 /include/misc | |
parent | 48cc051f29814e8c8d4498a4fb99204fa31e30e2 (diff) | |
download | lwn-15a9c9addacfc62780b7908e15e4fc87b508791f.tar.gz lwn-15a9c9addacfc62780b7908e15e4fc87b508791f.zip |
ALSA: ak411x: Fix stall in work callback
commit 4161b4505f1690358ac0a9ee59845a7887336b21 upstream.
When ak4114 work calls its callback and the callback invokes
ak4114_reinit(), it stalls due to flush_delayed_work(). For avoiding
this, control the reentrance by introducing a refcount. Also
flush_delayed_work() is replaced with cancel_delayed_work_sync().
The exactly same bug is present in ak4113.c and fixed as well.
Reported-by: Pavel Hofman <pavel.hofman@ivitera.com>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions