summaryrefslogtreecommitdiff
path: root/lib/clz_ctz.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-13 10:53:20 +0100
committerJiri Slaby <jslaby@suse.cz>2015-02-09 10:50:23 +0100
commitacccc0891b814bb82566dbbf76e96f47497c3dd8 (patch)
tree590ed713d2477683bb9a58aa3ce3784bb43e5d29 /lib/clz_ctz.c
parentb8de3b8efb36fbac23f80ba980858777ff0c4034 (diff)
downloadlwn-acccc0891b814bb82566dbbf76e96f47497c3dd8.tar.gz
lwn-acccc0891b814bb82566dbbf76e96f47497c3dd8.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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib/clz_ctz.c')
0 files changed, 0 insertions, 0 deletions