ALSA: dice: fix to wait for releases of all ALSA character devices
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 27 Oct 2018 08:13:31 +0000 (17:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 27 Oct 2018 14:52:58 +0000 (16:52 +0200)
commitaedef16a63d5d330afde4fcb54e0e73980e4a116
tree880a636fcc4ecf56a7fad83c3ef7e5dc3e4b7a32
parentde7d83da84bdf0b5ec50b3b09249e608c0e4b81d
ALSA: dice: fix to wait for releases of all ALSA character devices

In a development period for Linux kernel v4.20, drivers in ALSA firewire
stack were changed to wait for releases of all ALSA character devices at
.remove callback of bus driver. However, ALSA dice driver is partly out
of this change. This bug can bring fault to user process which holds
the last of character device in unplugging.

This commit fixes the driver to wait in the callback.

Fixes: 61ccc6f6b27c ('ALSA: firewire: block .remove callback of bus driver till all of ALSA character devices are released')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice.c