]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix null pointer dereference when node is disconnected
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 12 Mar 2021 09:34:07 +0000 (18:34 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Mar 2021 13:12:53 +0000 (14:12 +0100)
commit6928c63d5e95aec3ed090760db698d5e67cdd88f
treecba8741ea510f6bd20110069f2830f3622292d93
parent4020da5ed1cc25261318545f20af8a3c1eb5d274
ALSA: dice: fix null pointer dereference when node is disconnected

When node is removed from IEEE 1394 bus, any transaction fails to the node.
In the case, ALSA dice driver doesn't stop isochronous contexts even if
they are running. As a result, null pointer dereference occurs in callback
from the running context.

This commit fixes the bug to release isochronous contexts always.

Cc: <stable@vger.kernel.org> # v5.4 or later
Fixes: 403d06722435 ("ALSA: dice: support AMDTP domain")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210312093407.23437-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c